statusmap.cgi can't find libgd.so.2 in /usr/local/lib
Rob Moss
robmossrm at aol.com
Thu Sep 1 19:19:12 CEST 2005
Hi John,
It appears to me that your system library paths are not looking in
/usr/local/lib. There may be a symbolic link in /usr/lib for
freetype.so pointing into /usr/local/lib
To resolve the problem, you can add the line
/usr/local/lib
Into /etc/ld.so.conf and run
ldconfig
Which should then fix the problem. if not, then please provide the
output of the following commands:
ldd <statusmap.cgi>
ls -la /usr/local/lib/libgd*
cat /etc/ld.so.conf
echo $LD_LIBRARY_PATH
As far as I'm aware, statusmap.cgi is part of the core of nagios, and
not part of the plugins, and would have been compiled with the core of
nagios.
Cheers
rob.
John Christian wrote:
>Hello,
>
>I've RTFM, Googled, and checked the list archives but
>can't seem to really fix this issue. Any assistance
>would be very appreciated!
>
>It seems that statusmap.cgi in nagios-plugins-1.4.1 is
>not finding libgd.so.2 in /usr/local/lib. If I copy
>libgd.so.2 from /usr/local/lib to /usr/lib,
>nagios-plugins finds it just fine and statusmap.cgi
>works fine.
>
>How do I get nagios-plugins-1.4.1 to "see" the
>libgd.so.2 library in /usr/local/lib?
>
>BTW: I did an ldd of all the Nagios CGI's and there
>are other CGI's that DO find other libraries in
>/usr/local/lib. For example, trends.cgi found
>libfreetype.so.6 in /usr/local/lib just fine. Seems
>strange that statusmap.cgi doesn't find what it needs
>in /usr/local/lib.
>
>Nagios 2.0b4
>Linux foo.foo.com 2.4.21-27.0.2.ELsmp #1 SMP Wed Jan
>13 22:32:42 EST 2005 i686 i686 i386 GNU/Linux
>GNU Make version 3.79.1, by Richard Stallman and
>Roland McGrath. Built for i386-redhat-linux-gnu
>
>TIA!
>-John
>
>
--
Rob Moss
Unix Systems Admin
Hosting & DB Operations
Hammersmith, London, UK
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list