LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-22-2011, 03:19 PM   #1
manalisharmabe
Member
 
Registered: Dec 2010
Posts: 242

Rep: Reputation: 1
Question MRTG installation and compilation,please guide me


THESE ARE MY INFORMATION ABOUT MRTG AND LIBERIES.

I have mrtg version “mrtg-2.17.2”
I have following packeges installed in the RHEL 6 64 bit system


Then after running
Code:
:rpm –qa | grep gcc
I got
Code:
gcc-4.4.4-13.el6.x86_64
libgcc-4.4.4-13.el6.x86_64
libgcc-4.4.4-13.el6.i686
Then after running
Code:
:rpm –qa | grep gd
I got
Code:
php-gd-5.3.2-6.el6.x86_64
pulseaudio-gdm-hooks-0.9.21-13.el6.x86_64
gd-2.0.35-10.el6.x86_64
gdm-plugin-fingerprint-2.30.4-21.el6.x86_64
eggdbus-0.6-3.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
plymouth-gdm-hooks-0.8.3-17.el6.x86_64
gdm-user-switch-applet-2.30.4-21.el6.x86_64
gdb-7.1-29.el6.x86_64
gdm-2.30.4-21.el6.x86_64
gdm-libs-2.30.4-21.el6.x86_64
Then after running :
Code:
rpm –qa | grep libpng
i got
Code:
libpng-1.2.44-1.e16.x86_64
Then after running :
Code:
rpm –qa | grep perl
I got
Code:
perl-Package-Constants-0.02-115.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
perl-URI-1.40-2.el6.noarch
perl-Crypt-OpenSSL-Bignum-0.04-8.1.el6.x86_64
perl-NetAddr-IP-4.027-3.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
perl-Net-SSLeay-1.35-9.el6.x86_64
perl-Config-General-2.44-1.el6.noarch
perl-TimeDate-1.16-11.1.el6.noarch
perl-5.10.1-115.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
perl-HTML-Tagset-3.20-4.el6.noarch
perl-Pod-Escapes-1.04-115.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
perl-Params-Check-0.26-115.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
perl-Crypt-OpenSSL-RSA-0.25-10.1.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
perl-Module-Build-0.3500-115.el6.x86_64
perl-BSD-Resource-1.29.03-3.el6.x86_64
perl-Socket6-0.23-3.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
perl-Net-DNS-0.65-2.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
perl-CPANPLUS-0.88-115.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
perl-Mail-DKIM-0.37-2.el6.noarch
perl-Module-Pluggable-3.90-115.el6.x86_64
perl-Time-HiRes-1.9721-115.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
perl-Newt-1.08-26.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
perl-Net-LibIDN-0.12-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
perl-Digest-HMAC-1.01-22.el6.noarch
perl-IO-Socket-SSL-1.31-2.el6.noarch
perl-DBD-SQLite-1.27-3.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
perl-MailTools-2.04-4.el6.noarch
perl-version-0.77-115.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mod_perl-2.0.4-10.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
perl-DBD-MySQL-4.013-3.el6.x86_64
perl-Digest-SHA1-2.12-2.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
perl-Module-Loaded-0.02-115.el6.x86_64
perl-Crypt-OpenSSL-Random-0.04-9.1.el6.x86_64
perl-Encode-Detect-1.01-2.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
perl-IO-Socket-INET6-2.56-4.el6.noarch
perl-parent-0.221-115.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
perl-Pod-Simple-3.13-115.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
Then after running :
Code:
rpm –qa | grep zlib
I got
Code:
zlib-1.2.3-25.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
so after mrtg-2.17.2.tar.bz
I try to compile with
Code:
./configure –prefix=/usr/local/mrtg-2
which gave me following error:-

Code:
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 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
Now I don’t know where is the problem. What to compile?
What version of libraries should I use with mrtg-2.17.2?
Please guide me
My OS is rhel 6-64bit

Last edited by manalisharmabe; 08-22-2011 at 03:23 PM.
 
Old 08-22-2011, 03:42 PM   #2
arunpmenon
LQ Newbie
 
Registered: Sep 2010
Posts: 10

Rep: Reputation: 0
you need to install gd-devel. It will fix the issue.
 
Old 08-22-2011, 03:42 PM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by manalisharmabe View Post
THESE ARE MY INFORMATION ABOUT MRTG AND LIBERIES.
I have mrtg version “mrtg-2.17.2” I have following packeges installed in the RHEL 6 64 bit system

so after mrtg-2.17.2.tar.bz
I try to compile with
Code:
./configure –prefix=/usr/local/mrtg-2
which gave me following error:-
Code:
checking for gcc... gcc
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
Now I don’t know where is the problem. What to compile? What version of libraries should I use with mrtg-2.17.2? Please guide me My OS is rhel 6-64bit
Uhhh....can you not see the error above?? The gd.h file isn't present...it tells you that plainly, and gives you options and things to try. A brief Google search indicates that this is the gd-devel package for RHEL, so you can install it with "yum install gd-devel". This will only work if you have paid for your RHEL, though. Otherwise, install the package from another source, and if you're not going to pay for support for RHEL, then you SHOULD NOT USE IT.
 
0 members found this post helpful.
Old 08-25-2011, 04:12 PM   #4
manalisharmabe
Member
 
Registered: Dec 2010
Posts: 242

Original Poster
Rep: Reputation: 1
hey do i need to do some setting in router too while setting up MRTG?
 
Old 08-25-2011, 04:16 PM   #5
manalisharmabe
Member
 
Registered: Dec 2010
Posts: 242

Original Poster
Rep: Reputation: 1
Do i need to create web server for MRTG?
 
Old 08-25-2011, 05:02 PM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by manalisharmabe View Post
Do i need to create web server for MRTG?
..and...
Quote:
Originally Posted by manalisharmabe
hey do i need to do some setting in router too while setting up MRTG?
You need to read the documentation on it:
http://oss.oetiker.ch/mrtg/doc/mrtg-unix-guide.en.html

MRTG uses SNMP to query devices. So if your routers don't have SNMP running, then yes, you have to "do some setting". And without a web server, how do you think the pages will get served to anyone?
 
1 members found this post helpful.
Old 08-26-2011, 05:14 AM   #7
manalisharmabe
Member
 
Registered: Dec 2010
Posts: 242

Original Poster
Rep: Reputation: 1
Hey Thanks TBOne!!
 
  


Reply



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
Mrtg ??? ajeetraina Linux - Server 4 06-03-2008 09:02 AM
Mrtg jatender Linux - Server 1 06-21-2007 08:50 AM
can't get mrtg going varun_saa Fedora 1 02-17-2005 08:40 AM
rrd mrtg & mrtg-rrd.cgi ducati620 Linux - Newbie 0 06-03-2004 07:29 PM
Mrtg jcb_dreamvsat Linux - Software 3 07-27-2003 03:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:59 PM.

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