免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1350 | 回复: 6
打印 上一主题 下一主题

mrtg问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-06-15 16:52 |只看该作者 |倒序浏览
我 的 系统是linux9.2
[root@localhost mrtg-2.13.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
[root@localhost mrtg-2.13.2]# 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
[root@localhost mrtg-2.13.2]# rpm -qa|grep libpng
libpng-1.2.2-16
libpng10-1.0.13-8
[root@localhost mrtg-2.13.2]# rpm -qa|grep zlib
zlib-1.1.4-8
[root@localhost mrtg-2.13.2]# rpm -qa|grep net-snmp
net-snmp-utils-5.0.6-17
net-snmp-5.0.6-17

[root@localhost root]# cd mrtg-2.13.2
[root@localhost 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
[root@localhost mrtg-2.13.2]# make
make: *** No targets specified and no makefile found.  Stop.

我的MRTG安装不了,请问大哥们是 什么 问题啊?谢谢

论坛徽章:
0
2 [报告]
发表于 2006-06-15 17:35 |只看该作者
不懂english 学linux 太难了 身有体会啊

论坛徽章:
0
3 [报告]
发表于 2006-06-15 17:42 |只看该作者
gd没有安装

论坛徽章:
0
4 [报告]
发表于 2006-06-16 09:32 |只看该作者
装了 gd啊,最上面不 是 有吗

论坛徽章:
0
5 [报告]
发表于 2006-06-16 09:54 |只看该作者
需要的是 gd-devel-1.8.4-11

论坛徽章:
0
6 [报告]
发表于 2006-06-16 10:08 |只看该作者
有工夫还是研究cacti+rrdtool+snmp吧

比mrtg功能强大太多了

[ 本帖最后由 秋风No.1 于 2006-6-16 10:10 编辑 ]

论坛徽章:
0
7 [报告]
发表于 2006-06-26 08:49 |只看该作者
好象编译后会产生一个*。gc的文件
安装文件时候要指明这个文件的位置
你的 gd安装位置和mrtg想要找的位置不一样
可以看看makefile里边的gd所指向的位置
安装rrdtool时候也有这个问题
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP