LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-26-2003, 01:19 PM   #1
Astro
Member
 
Registered: Jan 2003
Location: Ballston Lake, NY
Distribution: Slackware, Debian
Posts: 665

Rep: Reputation: 30
Exclamation 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/
 
Old 04-26-2003, 03:58 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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
 
Old 04-26-2003, 05:33 PM   #3
Astro
Member
 
Registered: Jan 2003
Location: Ballston Lake, NY
Distribution: Slackware, Debian
Posts: 665

Original Poster
Rep: Reputation: 30
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.
 
Old 04-30-2003, 12:07 PM   #4
Astro
Member
 
Registered: Jan 2003
Location: Ballston Lake, NY
Distribution: Slackware, Debian
Posts: 665

Original Poster
Rep: Reputation: 30
Well supposedly I need the MySQL Development libraries according to the author of ifmonitor...any ideas where I can pick those up?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installation problems DDD26 Linux - Newbie 4 12-15-2004 04:37 PM
installation problems nikoz Linux - General 4 09-29-2004 03:38 PM
Installation problems acc_minion Linux - Software 3 07-25-2003 07:39 PM
Ifmonitor/GD/PHP4 help Astro Slackware 3 05-20-2003 07:01 PM
Mandrake 9.0 Installation Problems: X-Server, GUI Problems? chromelocust Linux - Software 4 03-21-2003 01:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration