Issue when installing MRTG

Scolpy

Verified User
Joined
Feb 25, 2009
Messages
137
Hello!

I'm trying to install MRTG, but I got this error:
[root@isr1 mrtg-2.16.4]# ./configure --prefix=/usr/local/mrtg-2
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for perl... /usr/bin/perl
checking for groff... /usr/bin/groff
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for inttypes.h... (cached) yes
checking for unsigned long long... yes
checking for long long... yes
checking for strtoll... yes
checking for printf long long format specifier... %lld
checking for pow in -lm... yes
checking for gdImageGif in -lgd... no
checking for gdImagePng in -lgd... no
checking for gdImagePng_jpg in -lgd... no
checking for gdImagePng_jpg_ft in -lgd... no
checking for gdImageGd in -lgd... no
checking gd.h usability... no
checking gd.h presence... no
checking for gd.h... no

** Ooops, one of many bad things happened:

a) You don't have the GD library installed.
Get it from http://www.boutell.com, 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 ...

Consider following the instructions in doc/mrtg-unix-guide.txt

After I run the command:
Code:
./configure --prefix=/usr/local/mrtg-2

I check if GD lib is installed on my server, by the command:
Code:
rpm -qa | grep gd

and this is the output:
sysklogd-1.4.1-46.el5
gd-2.0.33-9.4.el5_4.2
gdbm-devel-1.8.0-26.2.1
gdb-7.0.1-23.el5_5.2
gd-2.0.33-9.4.el5_4.2
gdbm-1.8.0-26.2.1

so you can see that I have GD lib installed on my server.

How can I resolve that issue?

Thanks a lot!

Yonatan :)
 
Thanks!

do you know what is the link to MRTG?(I didn't use MRTG for a lot of time)

Not sure what you mean by link. Everything still has to be configured. There is no web interface to set it up.
 
Not sure what you mean by link. Everything still has to be configured. There is no web interface to set it up.
I mean the link to the web statistics.

P.S.
where is the configuration file of MRTG?
 
After installing the rpm you can do this to find the files:

Code:
rpm -ql mrtg

But this is not something that is easy to set up and it depends on what you want mrtg to graph.
 
Back
Top