Trouble installing mrtg

Rich-Boy

Verified User
Joined
Jan 24, 2006
Messages
223
I'm trying to install mrtg-2.14.5 on my 5.4-release system. I have the following installed already;
-gd
-libpng
-zlib

Heres the error i get:
Code:
@root@# make install

...

checking gd.h usability... yes
checking gd.h presence... yes
checking for gd.h... yes

** Ooops, one of many bad things happened:

   a)  You don't have the GD library installed.
       Get it from [url]http://www.boutell.com,[/url] compile it and
       use either --with-gd-lib=DIR and --with-gd-inc=DIR to specify
       its location. You might also have to use --with-z-inc,
             --with-z-lib and --with-png-inc, --with-png-lib for gd
             versions 1.6 and higher.  Check config.log for more
       information on the problem.

   b)  You have the GD library installed, but not the gd.h
       header file.  Download the source (see above) and use
       --with-gd-inc=DIR to specify where the file can be found.

   c)  You have the library and the header file installed, but
       you also have a shared GD library in the same directory.
       Remove the shared library files and/or links (e.g.
       libgd.so.2.0.0, libgd.so and libgd.so.2).  This is especially
             likely if you're using a recent (post 1.8.4) version of GD
       and didn't configure it with --disable-shared.

   d)  You have gd library installed and also it's headers, but you are
       missing libpng (and headers) or freetype (and headers)
       (mrtg does not use freetype, but if your copy of gd is precompiled
       against it, you have to install it ...

...

*** Error code 1

Stop in /usr/ports/net-mgmt/mrtg.

Ive tried every step it sugguests above with no luck, i have also tried defining where each of the files are e.g.:
Code:
@root@# make install --with-gd-inc=/usr/local/include/gd.h /
--with-z-lib=/usr/local/include/zlib.h /
--with-png-lib=/usr/local/include/libpng/png.h

I cant seem to get around this error. Does anyone have experiance in installing mrtg on a freeBSD system and is willing to help me out?

Many Thanks
Chris
 
Nevermind, all done :)
I followed the doc step by step which meant re-downloading everything again but it worked fine eventually.
 
ports are your friend

Seriously people anyone using bsd needs to realizes ports make your job easier!
 
We would love to see a Howto for installing and configuring MRTG on the Freebsd system with all the goodies like the typical Howtos around here. A decent config file seems to be the key, but nobody has ever posted one.

BigWil
 
cacti > mrtg

MRTG is easy once you get snmpd going so once you get your snmpd.conf the way you want it test it via

snmpwalk -v -c community localhost

if you get lots of output that means that your snmpd is working correctly then you work on mrtg in my experience tho mrtg sucks in comparsion cacti. I'm a big big fan of cacti. If you need help setting this stuff up let me know im pretty good with this cacti business heh

Rob
 
Back
Top