歡迎您光臨本站 註冊首頁

mrtg問題

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

mrtg問題

我 的 系統是linux9.2
# rpm -qa|grep gd
gdk-pixbuf-0.18.0-7
gdbm-1.8.0-20
sysklogd-1.4.1-12
gdk-pixbuf-gnome-0.18.0-7
gdm-2.4.1.3-5
gd-1.8.4-11
# rpm -qa|grep perl
perl-HTML-Parser-3.26-17
perl-XML-Parser-2.31-15
perl-libxml-enno-1.02-29
perl-5.8.0-88
perl-HTML-Tagset-3.03-28
perl-Parse-Yapp-1.05-30
perl-libwww-perl-5.65-6
perl-libxml-perl-0.07-28
perl-XML-Encoding-1.01-23
perl-XML-Grove-0.46alpha-25
perl-Filter-1.29-3
perl-DateManip-5.40-30
perl-URI-1.21-7
perl-XML-Dumper-0.4-25
perl-XML-Twig-3.09-3
# rpm -qa|grep libpng
libpng-1.2.2-16
libpng10-1.0.13-8
# rpm -qa|grep zlib
zlib-1.1.4-8
# rpm -qa|grep net-snmp
net-snmp-utils-5.0.6-17
net-snmp-5.0.6-17

# cd mrtg-2.13.2
# ./configure --prefix=/usr/local/mrtg
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 ANSI C... 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 egrep... 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
# make
make: *** No targets specified and no makefile found.  Stop.

我的MRTG安裝不了,請問大哥們是 什麼 問題啊?謝謝
《解決方案》

不懂english 學linux 太難了 身有體會啊
《解決方案》

gd沒有安裝
《解決方案》

裝了 gd啊,最上面不 是 有嗎
《解決方案》

需要的是 gd-devel-1.8.4-11
《解決方案》

有工夫還是研究cacti+rrdtool+snmp吧

比mrtg功能強大太多了

[ 本帖最後由 秋風No.1 於 2006-6-16 10:10 編輯 ]
《解決方案》

好象編譯後會產生一個*。gc的文件
安裝文件時候要指明這個文件的位置
你的 gd安裝位置和mrtg想要找的位置不一樣
可以看看makefile裡邊的gd所指向的位置
安裝rrdtool時候也有這個問題
《解決方案》

MRTG問題,高手進來

我的MRTG其他的埠都運行正常,今天網斷了,然後啟動之後,我發現有兩個埠不走數據了,運行MRTG.CFG之後。發現
WARNING: Expected a number but got '#<unprintable BER type 0x81>'這樣的錯誤,這是為什麼呢?急!!!

[火星人 ] mrtg問題已經有433次圍觀

http://coctec.com/docs/service/show-post-26120.html