- 论坛徽章:
- 0
|
刚写完了,谁知道标题超长,一个返回什么都没了。哭啊。。。重写.
从 1点到现在安装mrtg,终于搞定。贴上来做个备忘。也方便其他网友。。
安装完zlib,libpng,gd后,提示正常。configure mrtg出现以下错误: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... 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.
------------------------------------
只写解决方法了,实在不想打字了。。
用gd-1.8.3.tar.gz版本安装。就可以通过
问题应该出在
checking for gdImageGif in -lgd... no
checking for gdImagePng in -lgd... no--------------------->;1
checking for gdImagePng_jpg in -lgd... no
checking for gdImagePng_jpg_ft in -lgd... no
checking for gdImageGd in -lgd... no----------------------->;2
checking gd.h usability... yes
这两个地方。我用gd-2.0.22.tar.gz没有调试通过。根据提示找到1.8.3版通过了。
等高人用2。0。22调出来。。
ZZZZZZZZZZZZZZzzzzzzzzzzzzzzzzzzzzzzzzzz............... |
|