LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 821|回复: 0

mrtg问题,GD库问题

[复制链接]
发表于 2003-10-3 12:49:05 | 显示全部楼层 |阅读模式
mrtg装不上,报错,说我GD库有问题.但我肯定是装了的,既装了RH9自己的rpm包,也装了官方下的tar包.还是不行,以前也这样,但指给他路径就行了,这次死都不行,郁闷


./configure --prefix=/usr/local/mrtg --with-gd-lib=/usr/local/gd/lib --with-gd-inc=/usr/local/gd/include --with-z-inc=/usr/local/gd/include --with-z-lib=/usr/local/gd/lib --with-png-inc=/usr/local/gd/include --with-png-lib=/usr/local/gd/lib



----------------------------------------
报错

checking for inttypes.h... (cached) yes
checking for unsigned long long... yes
checking for long long... yes
checking for strtoll... yes
checking for __strtoll... no
checking for pow in -lm... yes
checking if long long works here... 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... yes
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 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.

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

---------------------

GD库rpm
[root@linux bin]# rpm -qa |grep gd
gdk-pixbuf-0.18.0-7
gdk-pixbuf-gnome-0.18.0-7
gdbm-devel-1.8.0-20
gdbm-1.8.0-20
sysklogd-1.4.1-12
gdm-2.4.1.3-5
gdb-5.3post-0.20021129.18
gd-1.8.4-11
------------------------
GD库tar

[root@linux bin]# ./gdlib-config --all
GD library  2.0.15
includedir: /usr/local/gd/include
cflags:     -I/usr/local/gd/include
ldflags:
libs:       -lz -lm
libdir:     /usr/local/gd/lib
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表