<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>statusmap.cgi cannot locate libgd.so.2</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2 FACE="Arial">Hi, I am running Nagios 1.0 with the following libraries installed: </FONT>
<BR><FONT SIZE=2 FACE="Arial">jpeg-6b,libpng-1.2.5,libpng-1.2.5,zlib-1.1.4</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">My platform=Solaris 8 on Ultra-10</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I am able to compile Nagios with gd support. But when i tried to access statusmap, trends or histogram cgis in the browser, i got the following error in the Apache server error log -></FONT></P>

<P><FONT SIZE=2 FACE="Arial">ld.so.1: statusmap.cgi: fatal: libgd.so.2: open failed: No such file or directory</FONT>
<BR><FONT SIZE=2 FACE="Arial">[Tue Apr  1 15:03:28 2003] [error] [client 10.10.140.124] Premature end of script headers: /usr/local/nagios/sbin/statusmap.cgi</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Below is the output when i did a ldd of the statusmap.cgi -></FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">ldd  statusmap.cgi</FONT>
<BR><FONT SIZE=2 FACE="Arial">        libgd.so.2 =>    /usr/local/lib/libgd.so.2</FONT>
<BR><FONT SIZE=2 FACE="Arial">        libm.so.1 =>     /usr/lib/libm.so.1</FONT>
<BR><FONT SIZE=2 FACE="Arial">        libjpeg.so.62 =>         /usr/local/lib/libjpeg.so.62</FONT>
<BR><FONT SIZE=2 FACE="Arial">        libc.so.1 =>     /usr/lib/libc.so.1</FONT>
<BR><FONT SIZE=2 FACE="Arial">        libXpm.so.4.11 =>        /usr/local/lib/libXpm.so.4.11</FONT>
<BR><FONT SIZE=2 FACE="Arial">        libX11.so.4 =>   /usr/lib/libX11.so.4</FONT>
<BR><FONT SIZE=2 FACE="Arial">        libdl.so.1 =>    /usr/lib/libdl.so.1</FONT>
<BR><FONT SIZE=2 FACE="Arial">        libXext.so.0 =>  /usr/openwin/lib/libXext.so.0</FONT>
<BR><FONT SIZE=2 FACE="Arial">        libsocket.so.1 =>        /usr/lib/libsocket.so.1</FONT>
<BR><FONT SIZE=2 FACE="Arial">        libnsl.so.1 =>   /usr/lib/libnsl.so.1</FONT>
<BR><FONT SIZE=2 FACE="Arial">        libdga.so.1 =>   /usr/openwin/lib/libdga.so.1</FONT>
<BR><FONT SIZE=2 FACE="Arial">        libmp.so.2 =>    /usr/lib/libmp.so.2</FONT>
<BR><FONT SIZE=2 FACE="Arial">        /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">It seems like statusmap.cgi know where to find the gd libraries, but why do i still get the error above in the Apache logs when i tried to access the statusmap.cgi?</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Regards,</FONT>
<BR><FONT SIZE=2 FACE="Arial">Matthew</FONT>
<BR><FONT SIZE=2 FACE="Arial">This communication contains confidential or privileged information. If you are not the intended recipient, please notify us IMMEDIATELY that you have received it and destroy it. We are not liable for any unauthorised sending of or interference with this communication.</FONT></P>

</BODY>
</HTML>