Problem with bandwidthd
Out of the readme file it says:
INSTALATION INSTRUCTIONS
Get and install libpcap from
Get and install libpng from
Get and install libgd from
Make sure your system supports System V IPC
make install
I have all 3 of those installed on my linode:
[root@li5-11 bandwidthd-1.2.1b]# rpm -q libpcap
libpcap-0.8.3-3
[root@li5-11 bandwidthd-1.2.1b]# rpm -q libpng
libpng-1.2.5-8
[root@li5-11 bandwidthd-1.2.1b]# rpm -q libgd
libgd-2.0.20-2
Yet when I do make install I get the following error:
[root@li5-11 bandwidthd-1.2.1b]# make install
cc -I/usr/local/include -O3 -Wall -c -o bandwidthd.o bandwidthd.c
In file included from bandwidthd.c:10:
bandwidthd.h:24:16: gd.h: No such file or directory
bandwidthd.h:25:21: gdfonts.h: No such file or directory
In file included from bandwidthd.c:10:
bandwidthd.h:164: error: syntax error before "im"
bandwidthd.h:165: error: syntax error before "im"
bandwidthd.h:166: error: syntax error before "im"
make: *** [bandwidthd.o] Error 1
[root@li5-11 bandwidthd-1.2.1b]#
Any ideas guys? :/
3 Replies
It's looking for gd's header files and can't find them. This means could be 2 things:
1. The header files are not in an included directory.
2. The header files are not installed by the base gd package.
For #1, bandwidthd's configure script should have caught this. I don't know why it would wait until you did a make install to compile a file. Seems like a badly packaged program to me.
For #2, if there's a development RPM for gd, try installing it and run ldconfig & updatedb just to be safe.
If these suggestions don't work or you think I'm wrong, please refer to disclaimer above.
i will try those suggestions
goes to login to his linode
Any other ideas guys?
The main thing I want bandwidthd for is because I would like to monitor how much traffic each one of my IP's i have bound has sent out and brought in. Does anyone know another program other than bandwidthd that does that (if no one knows how to fix this problem)?