libgd linking errors

Marc Powell mpowell at ena.com
Tue Jul 8 16:05:16 CEST 2003


Check to make sure that /home/user/lib/libgd.so.2 is readable by the
http user.

You may also need to add the path to /etc/ld.so.conf and run ldconfig -V
to verify it's seen. A restart of apache might also be necessary.

marc

> -----Original Message-----
> From: Tielman De Villiers [mailto:tvilliers at Lastminute.com]
> Sent: Tuesday, July 08, 2003 8:58 AM
> To: 'nagios-users at lists.sourceforge.net'
> 
> hi,
> 
> nagios version: 1.1
> platform : suse-linux (2.4.10)
> This is a non-root install, ie in /home/user
> because of some other program compatibilies, a couple of custom
libries
> have
> been installed, relevant to nagios:
> /home/lib/libgd.so
> 
> Here are the configure options:
> 
> --with-cgiurl=/nagios/cgi-bin --with-htmurl=/nagios \
> --with-nagios-user=xxx --with-nagios-grp=xxx \
> --with-command-user=xxx --with-command-grp=xxx \
> --with-init-dir=/home/user/bin/ \
> --with-lockfile=/home/user/nagios/var/nagios.lock \
> --with-gd-lib=/home/user/lib --with-gd-inc=/home/user/include \
> --with-pgsql-lib=/home/user/lib --with-pgsql-inc=/home/user/include \
> --with-template-objects --with-template-extinfo \
> --enable-embedded-perl
> 
> It compiles okay and
> ldd /home/user/nagios/sbin/trends.cgi gives:
>         libgd.so.2 => /home/user/lib/libgd.so.2 (0x40016000)
>         libz.so.1 => /lib/libz.so.1 (0x40060000)
>         libm.so.6 => /lib/libm.so.6 (0x4006f000)
>         libpng.so.2 => /usr/lib/libpng.so.2 (0x40091000)
>         libjpeg.so.62 => /home/user/lib/libjpeg.so.62 (0x400c3000)
>         libc.so.6 => /lib/libc.so.6 (0x400e2000)
>         libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x40209000)
>         libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40218000)
>         libfreetype.so.6 => /home/user/lib/libfreetype.so.6
(0x402fb000)
>         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
> 
> But when I use the browser interface on trends.cgi, I get a cgi error
with
> this in the log file:
> trends.cgi: error while loading shared libraries: libgd.so.2: cannot
open
> shared object file: No such file or directory
> [Tue Jul  8 13:50:26 2003] [error] [client xxx] Premature end of
script
> headers: /home/user/nagios/sbin/trends.cgi
> 
> When I do a simple get call from the command line (after export
> REQUEST_METHOD=GET) I get a correct reply.
> 
> What am i missing here?
> 
> (The same kind of errors show when I try to use PostgreSQl to log the
> data,
> ie the CGI scripts cannot find libpq ...)
> 
> 
> 
> Thanks
> 
> Tielman de Villiers
> Back Office Developer
> Address: 4 Buckingham Gate, London SW1E 6JP
> Tel: +44(0)20.7802.4343
> Fax: +44(0)20.7802.9302
> email: tvilliers at lastminute.com
> 
> do something lastminute.com
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
>
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
> _______________________________________________
> 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


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
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