Webalizer & GD / GD-Devel Install problems

modem

Verified User
Joined
Apr 7, 2004
Messages
355
Hello,

Earlier when proceeding to upgrade Webalizer from the custombuild menu, I would receive the following error:

checking for main in -lgd... no
configure: error: gd library not found.. please install libgd
Trying to make webalizer...
make: *** No targets specified and no makefile found. Stop.

*** The make has failed, would you like to try to make again? (y,n):


So doing some research here on the forums I was pointed to the following help file on the DirectAdmin website:

http://help.directadmin.com/item.php?id=56

However after following the instructions and going to go and get the gd / gd-devel files via the YUM update command, I was left with the following error:

--> Finished Dependency Resolution
fontconfig-2.4.1-7.el5.i386 from base has depsolving problems
--> Missing Dependency: libfreetype.so.6 is needed by package fontconfig-2.4.1-7.el5.i386 (base)
gd-2.0.33-9.4.el5_4.2.i386 from base has depsolving problems
--> Missing Dependency: libpng12.so.0 is needed by package gd-2.0.33-9.4.el5_4.2.i386 (base)
gd-2.0.33-9.4.el5_4.2.i386 from base has depsolving problems
--> Missing Dependency: libpng12.so.0(PNG12_0) is needed by package gd-2.0.33-9.4.el5_4.2.i386 (base)
fontconfig-2.4.1-7.el5.i386 from base has depsolving problems
--> Missing Dependency: freetype >= 2.1.4 is needed by package fontconfig-2.4.1-7.el5.i386 (base)
gd-2.0.33-9.4.el5_4.2.i386 from base has depsolving problems
--> Missing Dependency: libfreetype.so.6 is needed by package gd-2.0.33-9.4.el5_4.2.i386 (base)
Error: Missing Dependency: libpng12.so.0(PNG12_0) is needed by package gd-2.0.33-9.4.el5_4.2.i386 (base)
Error: Missing Dependency: freetype >= 2.1.4 is needed by package fontconfig-2.4.1-7.el5.i386 (base)
Error: Missing Dependency: libfreetype.so.6 is needed by package gd-2.0.33-9.4.el5_4.2.i386 (base)
Error: Missing Dependency: libfreetype.so.6 is needed by package fontconfig-2.4.1-7.el5.i386 (base)
Error: Missing Dependency: libpng12.so.0 is needed by package gd-2.0.33-9.4.el5_4.2.i386 (base)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
[root@stargatesg1 custombuild]#


My question is what is causing this? I already have Freetype 2.4.8 installed from the CustomBuild script, however I still receive the above error when trying to install GD. Can anyone give some advice on where to direct me too?

Thanks!
 
Hello,

Custombuild installs those items from source, not rpm, so other rpms won't know they're there.
I'm guessing it's probably simplest just to satisfy the dependency by installing the rpms it wants, eg:
Code:
yum install freetype freetype-devel libpng libpng-devel
The other option is to force it in.. but would need manual download of the gd libraries, then a manual "rpm --force -Uvh gd-<version>.rpm" with the --force option (possibly --nodeps), to install it.

Note that webalizer can be rather quirky to get compiled. We recommend using the pre-compiled binaries, and add any missing libraries that it needs, eg:
Code:
ldd /usr/bin/webalizer
John
 
Back
Top