Link to home
Start Free TrialLog in
Avatar of arakis
arakis

asked on

GD Shared Library

Dear All,

Can anyone give me a brief howto on removing the GD shared libs on a Redhat 9.0 box. I'm trying to setup MRTG which I've done a few times before on older RH's without any probs at all. However, when './configure' ..ing, an error message appears which indicates that I need to remove the GD shared libs. I have tried removing all the libgd.so.* linked lib files in /usr/lib but MRTG still won't configure.

Please tell me that I dont need to recompile GD and re-install, as removing the GD rpm is a bitch because it has so many other dependants.

Yours hopefully,

A.
ASKER CERTIFIED SOLUTION
Avatar of surya_prabhakar
surya_prabhakar

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of arakis
arakis

ASKER

And that is exactly what I'm going to try next...(Guess I should have thought of that myself...!)

Error message below -

...
checking gd.h usability... yes
checking gd.h presence... yes
checking for gd.h... yes

** Ooops, one of many bad things happened:

   a)  You don't have the GD library installed.
       Get it from http://www.boutell.com, compile it and
       use either --with-gd-lib=DIR and --with-gd-inc=DIR to specify
       its location. You might also have to use --with-z-inc,
             --with-z-lib and --with-png-inc, --with-png-lib for gd
             versions 1.6 and higher.  Check config.log for more
       information on the problem.

   b)  You have the GD library installed, but not the gd.h
       header file.  Download the source (see above) and use
       --with-gd-inc=DIR to specify where the file can be found.

   c)  You have the library and the header file installed, but
       you also have a shared GD library in the same directory.
       Remove the shared library files and/or links (e.g.
       libgd.so.2.0.0, libgd.so and libgd.so.2).  This is especially
             likely if you're using a recent (post 1.8.4) version of GD
       and didn't configure it with --disable-shared.

   d)  You have gd library installed and also it's headers, but you are
       missing libpng (and headers) or freetype (and headers)
       (mrtg does not use freetype, but if your copy of gd is precompiled
       against it, you have to install it ...

Thanks for the pointer. Will get back to you shortly.

A.
when configuring GD ( do it with a -disable-shared _) and see.....

surya.
The mrtg build is probably complaining about not being able to find the GD header files, which will happen if you don't have the gd-devel package installed. Mrtg will work perfectly with the version of GD found on a RedHat 9 system.

At this point my recommendation is to re-install the GD package to fix where you futzed with it and to also install the matching gd-devel package. Then you'll be able to configure/build GD, or at least get a bit further. There could be other *-devel packages that you haven't added to the system, but you see the error in the configure output.

Avatar of arakis

ASKER

Thanks Surya. I now have a working MRTG.

I had already installed the gd-devel packages req. and the problem was solely down to the Shared Libs.

A.