Problem with bandwidthd

I am tryin to install bandwidthd, but am having problems with :/

Out of the readme file it says:

INSTALATION INSTRUCTIONS

Get and install libpcap from http://www.tcpdump.org/

Get and install libpng from http://www.libpng.org/

Get and install libgd from http://www.boutell.com/gd/

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

Disclaimer: I don't use Fedora/RedHat & I have no clue what bandwidthd is.

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. :)

bandwidthd doesnt have a configure script. all u do is download the tar.gz, extract, and type make install.

i will try those suggestions :) thanks

goes to login to his linode

unfortunately theres no other gd rpm file. 2.0.20 is the latest :/

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)?

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct