Rogelio
2007-Nov-30 20:45 UTC
[CentOS] unstable libdg error when ./configure Perfparse on Nagios 2.x / CentOS 4.x
I'm trying to ./compile Perfparse on my Nagios CentOS 4.x box, but am having this error. (And am hoping someone here might point me in the right direction) "configure: error: required library libgd unusable." Here is a history of my problems: First, it ./configure 'd ok, but I couldn't "make && make install" due to an error. I googled and found this FAQ on the the subject (http://perfparse.de/tiki-view_faq.php?faqId=1) ********************************************************* Q: When i try to compile, i get errors like: perfparse-0.105.5/perfparse/storage.c:269: undefined reference to `g_path_get_basename' A: Try this: cd perfparse make copy & paste the "/bin/sh ../libtool ...." line and add "/opt/gnome/lib64/libglib-2.0.so" at the end. The path may vary. Try to find the libglib-2.0.so. Then try again with "make". ********************************************************* Not sure what happened, but it eventually was working, and later I got past that error and got a "gdImage" error when I tried to "make && make install". (This too is on the FAQ page) ********************************************************* "A: The gd library is probably not installed yet on your system. Or you are missing the development package such as libgd-devel or libgd-dev. Install gd and try again." ********************************************************* Not knowing what to do (gd-2.0.28-5.4E and gd-devel-2.0.28-5.4E were installed), we "yum removed" these packages (which destroyed Nagios, and I had to reinstall and reconfigure that too), and ever since, I've gotten that ""configure: error: required library libgd unusable" error whenever I've tried to ./configure with the automake tools. Any advice would be greatly appreciated!
Garrick Staples
2007-Nov-30 22:55 UTC
[CentOS] unstable libdg error when ./configure Perfparse on Nagios 2.x / CentOS 4.x
On Fri, Nov 30, 2007 at 12:45:47PM -0800, Rogelio alleged:> I'm trying to ./compile Perfparse on my Nagios CentOS 4.x box, but am > having this error. (And am hoping someone here might point me in the > right direction)I just downloaded and tried it. Turns our you need the gd-progs package installed to get the gdlib-config script (necessary to satisfy perfparse's configure). After installing gd-progs, everything built fine. So verify the following on your machine (make sure they are genuine centos packages and not from a 3rd party repo): $ rpm -q --qf '%{NAME}-%{VERSION}.%{RELEASE}.%{ARCH}\n' gd gd-devel gd-progs glib glib-devel gd-2.0.28.5.4E.x86_64 gd-devel-2.0.28.5.4E.x86_64 gd-progs-2.0.28.5.4E.x86_64 glib-1.2.10.15.x86_64 glib-1.2.10.15.i386 glib-devel-1.2.10.15.x86_64 Then start over with a clean build and try configure and make again. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20071130/290258c9/attachment-0005.sig>
Rogelio
2007-Dec-01 17:13 UTC
[CentOS] unstable libdg error when ./configure Perfparse on Nagios 2.x / CentOS 4.x
On 11/30/07, Garrick Staples <garrick at usc.edu> wrote:> I just downloaded and tried it. Turns our you need the gd-progs package > installed to get the gdlib-config script (necessary to satisfy perfparse's > configure).I have those installed already, but am not sure what is still hosed. Right now, I cannot get past the configure script. I keep getting the error: (bunch of OKs, then the following): checking for gdlib-config... /usr/bin/gdlib-config checking for gdMalloc in -lgd... no configure: error: required library libgd unusable. Install required and dependent files and rerun configure. See config.log or FAQs for details. Not knowing what else to do, I reinstalled (via rpm -i) the following packages gd-2.0.28-5.4E.i386.rpm gdk-pixbuf-0.22.0-17.el4.3.i386.rpm gdbm-1.8.0-24.i386.rpm gd-progs-2.0.28-5.4E.i386.rpm gdbm-devel-1.8.0-24.i386.rpm gtk+-1.2.10-36.i386.rpm gd-devel-2.0.28-5.4E.i386.rpm php-gd-4.3.9-3.22.4.i386.rpm Here is what I got when I tried to "rpm -i" install the gdk-pixbuf rpm -i gdk-pixbuf-0.22.0-17.el4.3.i386.rpm error: Failed dependencies: libgdk-1.2.so.0 is needed by gdk-pixbuf-0.22.0-17.el4.3.i386 libgtk-1.2.so.0 is needed by gdk-pixbuf-0.22.0-17.el4.3.i386 Suggested resolutions: /home/buildcentos/CENTOS/en/4.0/i386/CentOS/RPMS/gtk+-1.2.10-36.i386.rpm I then installed that gtk rpm, and I got the following issue: rpm -i gtk+-1.2.10-36.i386.rpm error: Failed dependencies: gdk-pixbuf >= 0.18.0 is needed by gtk+-1.2.10-36.i386 Suggested resolutions: /home/buildcentos/CENTOS/en/4.0/i386/CentOS/RPMS/gdk-pixbuf-0.22.0-17.el4.3.i386.rpm So, I ran "yum install gdk-pixbuf", which then grabbed the gdk-pixbuf and gtk+ packages. Now, the only gd package that has a problem is php-gd (which I'm not even sure is related) rpm -i php-gd-4.3.9-3.22.4.i386.rpm error: Failed dependencies: php = 4.3.9-3.22.4 is needed by php-gd-4.3.9-3.22.4.i386 Suggested resolutions: /home/buildcentos/CENTOS/en/4.0/i386/CentOS/RPMS/php-4.3.9-3.22.4.i386.rpm Should I perhaps be looking in the direction of ldconfig to fix my problems?
Maybe Matching Threads
- libgd question on CentOS (in order to get PerfParse working with Nagios)
- ./configure perfparse -> "configure: error: required library libgd unusable"
- ./configure -> "libgd unusable" (shall I build from source or scrape and rebuild?)
- GD libraries and $PREFIX (was Re: building NUT on Mac OS X Yosemite(website/documentation))
- config file locations