LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   ifmonitor installation problems (https://www.linuxquestions.org/questions/slackware-14/ifmonitor-installation-problems-56887/)

Astro 04-26-2003 01:19 PM

ifmonitor installation problems
 
Trying to install ifmonitor here on a slackware 9 box, I had everything installed like GD with the PHP and other things, but when I try to ./ifmonitor after doing the make install it gives me this error...

root@trance:/home/astro/ifmonitor/daemon# ./ifmonitor
./ifmonitor: error while loading shared libraries: libmysqlclient.so.10: cannot open shared object file: No such file or directory

so then I edit Makefile and add -I/usr/local/mysql/lib/mysql/ to the libs = to that I can remake it...and this happens

root@trance:/home/astro/ifmonitor/daemon# make all
gcc -ansi -DDAEMON -c main.c
In file included from main.c:5:
headers.h:1:25: mysql/mysql.h: No such file or directory
main.c:9: parse error before "mysql"
main.c:9: warning: data definition has no type or storage class
make: *** [main.o] Error 1

Not sure where to go from here... There is a mysql.h everywhere it needs to be....am I missing something else??

The site for ifmonitor is http://ifmonitor.preteritoimperfeito.com/

Tinkster 04-26-2003 03:58 PM

Quote:

root@trance:/home/astro/ifmonitor/daemon# ./ifmonitor
./ifmonitor: error while loading shared libraries: libmysqlclient.so.10: cannot open shared object file: No such file or directory

so then I edit Makefile and add -I/usr/local/mysql/lib/mysql/ to the libs = to that I can remake it...and this happens
At this stage it would have been enough for you
to just edit /etc/ld.so.conf and add the path to your
mysql-libraries ...

Why it can't find the headers the second time
around I don't understand.

Cheers,
Tink

Astro 04-26-2003 05:33 PM

I got it using what you said, adding that to ld.so.conf.... its populating the database, but I get these errors...

Warning: Division by zero in /usr/local/apache/web/ifmon/include/chart.php on line 56

Warning: Division by zero in /usr/local/apache/web/ifmon/include/chart.php on line 57

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/apache/web/ifmon/include/chart.php:56) in /usr/local/apache/web/ifmon/include/chart.php on line 173

Fatal error: Call to undefined function: imagepng() in /usr/local/apache/web/ifmon/include/chart.php on line 174


Not sure why, I just installed gd properly and everything...gd was a pain to install as well. However I guess this isn't really the place for this anyways so whatever.

Astro 04-30-2003 12:07 PM

Well supposedly I need the MySQL Development libraries according to the author of ifmonitor...any ideas where I can pick those up?


All times are GMT -5. The time now is 06:34 AM.