<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">I put that in a file and execute the script using "sh go.sh" command.<br>The content of the script look like the same as yours:<br>#!/bin/sh<br>CFLAGS="-I/usr/local/include -I/usr/sfw/include" LDFLAGS="-s -R/usr/local/lib:/usr/sfw/lib -L/usr/local/lib -L/usr/sfw/lib" ./configure --prefix=/opt/nagios --with-nagios-user=nagios --with-nagios-grp=nagios --with-perlcache --enable-embedded-perl --with-gd-inc=/usr/local/include --with-gd-lib=/usr/local/lib<br><br>But I am still getting the same error.<br>The reason I put it in a script file is because I the terminal I logon does not allow me to type such a long commandline in the shell.<br><br>Thanks<br>Sam<br><br><div style="font-family: times new roman,new
 york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Luc I. Suryo <luc@suryo.com><br>To: Live Great <livegreat007@yahoo.com><br>Cc: Luc I. Suryo <luc@suryo.com>; nagios-users@lists.sourceforge.net<br>Sent: Wednesday, October 17, 2007 12:41:37 PM<br>Subject: Re: [Nagios-users] ldconfig<br><br><div><br>> I still  having this error:<br>> # CFLAGS="-I/usr/local/include -I/usr/sfw/include"<br>>     LDFLAGS="-s -R/usr/local/lib:/usr/sfw/lib -L/usr/local/lib -L/usr/sfw/lib"#<br>> # export CFLAGS<br>> # export LDFLAGS<br>> # echo $LDFLAGS<br>> -s -R/usr/local/lib:/usr/sfw/lib -L/usr/local/lib -L/usr/sfw/lib<br>> # echo $CFLAGS<br>> -I/usr/local/include -I/usr/sfw/include<br>> #<br>> ./configure --prefix=$NAGIOSHOME --with-nagios-user=nagios --with-nagios-grp=nagios\<br>>   --with-perlcache --enable-embedded-perl
 --with-gd-inc=/usr/local/include\<br>>   --with-gd-lib=/usr/local/lib<br>> ....<br>> checking for main in -liconv... yes<br>> checking for gdImagePng in -lgd (order 1)...<br>>  no<br>> checking for gdImagePng in -lgd (order 2)... no<br>> checking for gdImagePng in -lgd (order 3)... no<br>> checking for gdImagePng in -lgd (order 4)... no<br>> ...<br><br>nope not what i said :-)<br><br><br>CFLAGS="-I/usr/local/include -I/usr/sfw/include"\<br>LDFLAGS="-s -R/usr/local/lib:/usr/sfw/lib -L/usr/local/lib -L/usr/sfw/lib"\<br>./configure --prefix=$NAGIOSHOME --with-nagios-user=nagios --with-nagios-grp=nagios\<br>--with-perlcache --enable-embedded-perl --with-gd-inc=/usr/local/include\<br>--with-gd-lib=/usr/local/lib<br><br>or CFLAGS=$CFLAGS LDFLAGS=$LDFLAGS ./configure ...<br><br>and check what the config.log file reports<br><br>good luck<br><br>-ls<br><br><br>>     CC=gcc
 \<br>>     CFLAGS="-I/usr/local/include -Ixxx" \<br>>     LDFLAGS="-s -R/usr/local/lib:/yyyy -L/usr/local/lib -Lyyyy \<br>>         ./configure --your-option<br>> <br>> and i would advice to use Sun's compiler (studio 12) instead of GCC<br>> also replace the xxx with our location for the include files and yyy<br>> with the one for the libraries<br>> <br>> something like<br>>     CFLAGS="-I/usr/local/include -I/usr/sfw/include"<br>>     LDFLAGS="-s -R/usr/local/lib:/usr/sfw/lib -L/usr/local/lib -L/usr/sfw/lib"<br>> <br>> make sense? my sparc systems are currently not available for 'testing',<br>> I do have a Solaris x86 server (Sun brand) that is use for compiling<br>> packages...<br>> <br>> <br>> <br>> Live Great <livegreat007@yahoo.com><br>>    wrote
 at Mon, Oct 15, 2007 at 07:48:07PM -0700:<br>> <br>> > Hi,<br>> > <br>> > I found that I don't have the libiconv and gd library.<br>> > After I installed it, ./configure runs better, but still complain gd lib not found.<br>> > I used " --with-gd-lib and --with-gd-inc" with /usr/local/lib and /usr/local/include in the commandline, but still complain gd  not found.<br>> > I have added /usr/local/include and /usr/local/lib in the /etc/ld.so.conf file, but I can't find ldconfig command in the system.<br>> > Do I need to run ldconfig? and where can I download this tool for Sun 5.10?<br>> > <br>> > Thanks<br>> > <br>> > <br>> > ----- Original Message ----<br>> > From: Live Great <livegreat007@yahoo.com><br>> > To: nagios-users@lists.sourceforge.net<br>> > Sent: Tuesday, October 16, 2007 12:12:05 PM<br>> > Subject: Re: [Nagios-users] Nagios-3.x
 Solaris 9 Build Problem<br>> > <br>> > Hi,<br>> > <br>> > I am running Sun 5.10 on Sparc.<br>> > I got the following error while executing ./configure for Nagios.<br>> > <br>> > <br>> > configure:1794: gcc --version </dev/null >&5<br>> > ld.so.1: gcc: fatal: libiconv.so.2: open failed: No such file or directory<br>> > ./configure: line 1795: 19871 Killed                  $CC --version<br>> > configure:1797: $? = 137<br>> > configure:1799: gcc -v </dev/null >&5<br>> > ld.so..1: gcc: fatal: libiconv.so.2: open failed: No such file or directory<br>> > ./configure: line 1800: 19875 Killed                  $CC<br>> >  -v<br>> > configure:1802: $? =
 137<br>> > configure:1804: gcc -V </dev/null >&5<br>> > ld.so.1: gcc: fatal: libiconv.so.2: open failed: No such file or directory<br>> > ./configure: line 1805: 19879 Killed                  $CC -V<br>> > configure:1807: $? = 137<br>> > configure:1830: checking for C compiler default output file name<br>> > configure:1833: gcc    conftest.c  >&5<br>> > ld.so.1: gcc: fatal: libiconv.so.2: open failed: No such file or directory<br>> > ./configure: line 1834: 19889 Killed                  $CC $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5<br>> > configure:1836: $? = 137<br>> > <br>> > What development packages I need to download in order to fix this
 error?<br></div></div><br></div></div></body></html>