libgd linking errors

Tielman De Villiers tvilliers at Lastminute.com
Tue Jul 8 17:18:34 CEST 2003


Thanks Marc,

The read permissions seem ok:
----------------
-rwxr-xr-x    1 user group        456230 Jul  7 16:51 libgd.so.2.0.0
----------------

And I run both apache and nagios as user and group:
ps -aux | grep user
-------------
user     20469  0.0  0.0  2380 1132 ?        S    13:14   0:00
/home/user/apache/bin/httpd
...
user     24737  0.0  0.2  3812 2516 ?        S    13:36   0:00
/home/user/nagios/bin/nagios -d 
    /home/user/nagios/etc/nagios.cfg
----------------

Can't do ldconfig, as root is not an option, i did export :

LD_LIBRARY_PATH:$LD_LIBRARY_PATH:/home/user/lib

A restart of apache also did not help 

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


> -----Original Message-----
> From: Marc Powell [mailto:mpowell at ena.com]
> Sent: 08 July 2003 15:05
> To: Tielman De Villiers; nagios-users at lists.sourceforge.net
> Subject: RE: [Nagios-users] libgd linking errors
> 
> 
> 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_06
1203_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 e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________


-------------------------------------------------------
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