高分求助!rh as4安装gd库的问题,在线等~
时间:2008-07-21
来源:互联网
之后::::::
[root@localhost gd-2.0.35]# make
cd . && /bin/sh /bbtbase/soft/gd/gd-2.0.35/config/missing --run aclocal-1.9 -I config
cd . && /bin/sh /bbtbase/soft/gd/gd-2.0.35/config/missing --run automake-1.9 --foreign
Makefile.am:18: Libtool library used but `LIBTOOL' is undefined
Makefile.am:18:
Makefile.am:18: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
Makefile.am:18: to `configure.ac' and run `aclocal' and `autoconf' again.
make: *** [Makefile.in] Error 1
[root@localhost gd-2.0.35]#
郁闷了好几天了,找了网上很多方法都搞不定,急救~
作者: tssungeng 发布时间: 2008-07-21
试一试在Makefile.am中将 -I /your-libtool-dir加到ACLOCAL_AMFLAGS 宏
作者: linaxing 发布时间: 2008-07-21
作者: linaxing 发布时间: 2008-07-21
这么写对吗:
#ACLOCAL_AMFLAGS = -I config
ACLOCAL_AMFLAGS = -I /usr/share/aclocal
但是还是报那个同样的错误啊
[root@localhost gd-2.0.35]# rpm -ql libtool
/usr/bin/libtool
/usr/bin/libtoolize
/usr/include/ltdl.h
/usr/lib/libltdl.a
/usr/lib/libltdl.la
/usr/lib/libltdl.so
/usr/share/aclocal/libtool.m4
/usr/share/aclocal/ltdl.m4
/usr/share/doc/libtool-1.5.6
/usr/share/doc/libtool-1.5.6/AUTHORS
/usr/share/doc/libtool-1.5.6/COPYING
/usr/share/doc/libtool-1.5.6/ChangeLog
/usr/share/doc/libtool-1.5.6/INSTALL
/usr/share/doc/libtool-1.5.6/NEWS
/usr/share/doc/libtool-1.5.6/README
/usr/share/doc/libtool-1.5.6/THANKS
/usr/share/doc/libtool-1.5.6/TODO
/usr/share/info/libtool.info.gz
/usr/share/libtool
/usr/share/libtool/config.guess
/usr/share/libtool/config.sub
/usr/share/libtool/libltdl
/usr/share/libtool/libltdl/COPYING.LIB
/usr/share/libtool/libltdl/Makefile.am
/usr/share/libtool/libltdl/Makefile.in
/usr/share/libtool/libltdl/README
/usr/share/libtool/libltdl/acinclude.m4
/usr/share/libtool/libltdl/aclocal.m4
/usr/share/libtool/libltdl/config-h.in
/usr/share/libtool/libltdl/config.guess
/usr/share/libtool/libltdl/config.sub
/usr/share/libtool/libltdl/configure
/usr/share/libtool/libltdl/configure.ac
/usr/share/libtool/libltdl/install-sh
/usr/share/libtool/libltdl/ltdl.c
/usr/share/libtool/libltdl/ltdl.h
/usr/share/libtool/libltdl/ltmain.sh
/usr/share/libtool/libltdl/missing
/usr/share/libtool/ltmain.sh
[root@localhost gd-2.0.35]#
作者: tssungeng 发布时间: 2008-07-21
这个错误指 aclocal 无法从 由libtool 安装产生 libtool.m4 文件中找到相那两个宠命令。通常这说明你没有安装 libtool ,到少表明 autogen.sh 无法找到 libtool。
这很有可能是你安装 automake (由aclocal所提供的) 时用的前缀(prefix) 和libtool不同。你可以检查一下aclocal 和 libtool 安装的前缀(prefix)是什么
Y你选择以下三种方法来解决前缀(prefix)不同的问题 :
1.
安装 automake 前缀(prefix) 和 libtool 一样
2.
force use of the automake installed in the same prefix as libtool by using the --with-automake option
3.
figure out what prefix libtool has been installed to and point aclocal to the right location by running
export ACLOCAL_FLAGS="-I $(prefix)/share/aclocal"
where you replace prefix with the prefix where libtool was installed.
Autoconf version 2.60 or higher is required
Autoconf是一个用于生成可以自动地配置软件源代码包以适应多种Unix类系统的 shell脚本的工具。由Autoconf生成的配置脚本在运行的时候与Autoconf是无关的,就是说配置脚本的用户并不需要拥有Autoconf。
由 Autoconf生成的配置脚本在运行的时候不需要用户的手工干预;通常它们甚至不需要通过给出参数以确定系统的类型。相反,它们对软件包可能需要的各种特征进行独立的测试。(在每个测试之前,它们打印一个单行的消息以说明它们正在进行的检测,以使得用户不会因为等待脚本执行完毕而焦躁。)因此,它们在混合系统或者从各种常见Unix变种定制而成的系统中工作的很好。没有必要维护文件以储存由各个Unix变种、各个发行版本所支持的特征的列表。
对于每个使用了Autoconf的软件包,Autoconf从一个列举了该软件包需要的,或者可以使用的系统特征的列表的模板文件中生成配置脚本。在 shell代码识别并响应了一个被列出的系统特征之后,Autoconf允许多个可能使用(或者需要)该特征的软件包共享该特征。如果后来因为某些原因需要调整shell代码,就只要在一个地方进行修改;所有的配置脚本都将被自动地重新生成以使用更新了的代码。
Metaconfig包在目的上与Autoconf很相似,但它生成的脚本需要用户的手工干预,在配置一个大的源代码树的时候这是十分不方便的。不象Metaconfig脚本,如果在编写脚本时小心谨慎, Autoconf可以支持交叉编译(cross-compiling)。
Autoconf目前还不能完成几项使软件包可移植的工作。其中包括为所有标准的目标自动创建`Makefile'文件,包括在缺少标准库函数和头文件的系统上提供替代品。目前正在为在将来添加这些特征而工作。
对于在C程序中的#ifdef中使用的宏的名字,Autoconf施加了一些限制(参见预处理器符号索引)。
Autoconf 需要GNU m4以便于生成脚本。它使用了某些UNIX版本的m4 所不支持的特征。它还会超出包括GNU m4 1.0在内的某些m4版本的内部限制。你必须使用GNU m4的1.1版或者更新的版本。使用1.3版或者更新的版本将比1.1 或1.2版快许多。
关于从版本1中升级的详情,参见从版本1中升级。关于Autoconf的开发历史,参见Autoconf的历史。对与Autoconf有关的常见问题的回答,参见关于Autoconf的问题。
把关于Autoconf的建议和bug报告发送到bug-gnu-utils at prep dot ai.mit.edu。请把你通过运行`autoconf --version'而获得的Autoconf的版本号包括在内。
作者: linaxing 发布时间: 2008-07-21
作者: tssungeng 发布时间: 2008-07-22
作者: fierygnu 发布时间: 2008-07-22
# aclocal
…warning: macro `AM_ICONV’ not found in library
然后
yum -y install gettext-devel
然后再
yum -y install libtool*
再配置然后安装 就成了
作者: miracle13hm 发布时间: 2011-07-04
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28