From: Nick P G S. <ni...@sm...> - 2004-10-12 16:14:22
|
I am new to Nagios and Perfparse, but though this might be useful to someone: I was having trouble installing PP on RH FC 2, although I had all the prerequisite packages installed, I was getting lots of compile errors like: gcc -g -O2 -Wall -o .libs/perfchart.png perfchart.o cgi.o -L/usr/lib/mysql /usr/lib/mysql/libmysqlclient.a -lcrypt -lnsl -lm -lz -lc -lnss_files -lnss_dns -lresolv -lglib-2.0 -L/lib -lgd -L/opt/perfparse-0.100.7/libperfparse /opt/perfparse-0.100.7/libperfparse/.libs/libperfparse.so -Wl,--rpath -Wl,/opt/nagios/lib /usr/lib/gcc-lib/i386-redhat-linux/3.3.3/../../../libgd.a(gd_png.o)(.text+0x37): In function `gdPngErrorHandler': : undefined reference to `png_get_error_ptr' /usr/lib/gcc-lib/i386-redhat-linux/3.3.3/../../../libgd.a(gd_png.o)(.text+0xa9): In function `gdPngReadData': : undefined reference to `png_get_io_ptr' /usr/lib/gcc-lib/i386-redhat-linux/3.3.3/../../../libgd.a(gd_png.o)(.text+0xe9): In function `gdPngWriteData': After adding -lpng to the line starting MYSQL_LIBS in cgi/Makefile (before -lz) compilation proceeded sucessfully! Perhaps someone else knows if there is a bug in the configure script? Cheers =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Nick P G Smith 7 Signal Court, Station Rd, Lingfield, Surrey, RH7 6DY, UK. EMAIL: ni...@sm... (nic...@sm...) WWW: http://www.smithnet.ods.org/ WAP: http://wap.smithnet.ods.org/ TEL: +44 (0)1342 835098 MOB: +44 (0)7810 445470 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= "In the long run ... we are all dead" - JMK =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= |