返回信息流转信站: BYR!news.byr.edu.cn!news.newsmth.net!NEWSMTH
指点一下思路吧,免得我漫无目标地寻找。。。
【 在 acalism (Lenny·既无意义,何必原谅?) 的大作中提到: 】
: 错误信息如下,这个$(LIBTOOL)是什么,为什么我在网上没搜到libtool里的这个变量?
: 我的libtool是从ustc的镜像安装的。autoconf和automake都是最新版,去官方下载源码安装的。。。。。
: You should update your `aclocal.m4' by running aclocal.
: ...................
这是一条镜像帖。来源:北邮人论坛 / bbs-man-dev / #10887同步于 1 周前
BBSMan_Dev机器人发帖
debian5.0下安装kbs,运行./autogen.sh出现问题
acalism.
1 周前镜像同步11 回复
订阅后,新回复会通过你的通知中心匿名送达。
9 条回复
转信站: BYR!news.byr.edu.cn!news.newsmth.net!NEWSMTH
第一句你没看懂?
【 在 acalism (Lenny·既无意义,何必原谅?) 的大作中提到: 】
: 错误信息如下,这个$(LIBTOOL)是什么,为什么我在网上没搜到libtool里的这个变量?
: 我的libtool是从ustc的镜像安装的。autoconf和automake都是最新版,去官方下载源码安装的。。。。。
: You should update your `aclocal.m4' by running aclocal.
: ...................
转信站: BYR!news.byr.edu.cn!news.newsmth.net!NEWSMTH
我运行了第一句,仍然出现这样的问题。。。。。。。。我应该先说明的。。抱歉。
【 在 JulyClyde (torred) 的大作中提到: 】
: 第一句你没看懂?
转信站: BYR!news.byr.edu.cn!news.newsmth.net!NEWSMTH
网络上的一个解决方法:
版权:网络转载请保留作者(foxcamel) 及 原文链接:http://www.ispig.net/index.php/archives/171
最近在重新编译php的时候,看到pecl官方网站已经挂出了sphinx的pecl扩展,于是就想尝试一下,在安装sphinx库的时候,需要先 build一个configure文件。自从安装fedora9之后,我还从来没有build过任何东西,所以没有料到会出问题。在执行 buildconf.sh的时候,遇到了这样的报错:
Libtool library used but `LIBTOOL’ is undefined
产生这个报错的原因有两种,一种是没有安装libtool,一种是安装了libtool但是aclocal和libtool未安装在同一文件夹下。我的问题属于后者。
新版的Fedora系统在安装新的automake工具的时候,并没有安装到默认的automake文件夹,而是安装到automake- version,比如automake-1.9文件夹,于是aclocal也被安装到了aclocal-version中,跟默认的libtool显然就不是同一文件夹,出现找不到libtool的情况也是正常的了。那么该如何修改呢?其实很简单把默认的aclocal文件夹中的文件,copy到 aclocal-version文件夹中,然后删除aclocal文件夹,做一个aclocal的Symbolink连接,连接到aclocal- version文件夹中。
以我的系统为例:系统自带的aclocal文件夹安装在/usr/share/aclocal中,后来升级的aclocal就安装到了/usr/share/aclocal-1.9中,于是
cp /usr/share/aclocal/* /usr/share/aclocal-1.9/
rm /usr/share/aclocal
ln -s /usr/share/aclocal-1.9 /usr/share/aclocal
然后把可执行程序也替换一下:
rm /usr/bin/aclocal
ln -s /usr/bin/aclocal-1.9 /usr/bin/aclocal
最后执行
aclocal
autoconf
就可以正常make了。
当aclocal找不到libtool的时候,可能的报错还有:
macro `AM_DISABLE_STATIC’ not found in library
macro `AM_PROG_LIBTOOL’ not found in library
用这种方法都可以解决。
【 在 acalism (Lenny·既无意义,何必原谅?) 的大作中提到: 】
: 错误信息如下,这个$(LIBTOOL)是什么,为什么我在网上没搜到libtool里的这个变量?
: 我的libtool是从ustc的镜像安装的。autoconf和automake都是最新版,去官方下载源码安装的。。。。。
: You should update your `aclocal.m4' by running aclocal.
: ...................
转信站: BYR!news.byr.edu.cn!news.newsmth.net!NEWSMTH
http://unix.derkeiler.com/Mailing-Lists/FreeBSD/questions/2007-06/msg02018.html
大概是最早出处了。。。
Basically when running ./autogen or bootstrap, you get something like:
fed# automake
src/Makefile.am:3: Libtool library used but `LIBTOOL' is undefined
src/Makefile.am:3:
src/Makefile.am:3: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/Makefile.am:3: to `configure.in' and run `aclocal' and `autoconf' again.
This is caused because FreeBSD renames the default tools, like aclocal to
aclocal19. When aclocal is run, it looks for files in its FreeBSD set directory,
/usr/local/share/aclocal19 but most normal apps, like libtool, install to
/usr/local/share/aclocal. The solution? Simple! Just merge the contents into one
directory, delete the other, and create a symlink!
【 在 acalism (Lenny·既无意义,何必原谅?) 的大作中提到: 】
: 网络上的一个解决方法:
: 版权:网络转载请保留作者(foxcamel) 及 原文链接:http://www.ispig.net/index.php/archives/171
: 最近在重新编译php的时候,看到pecl官方网站已经挂出了sphinx的pecl扩展,于是就想尝试一下,在安装sphinx库的时候,需要先 build一个configure文件。自从安装fedora9之后,我还从来没有build过任何东西,所以没有料到会出问题。在执行 buildconf.sh的时候,遇到了这样�
: ...................
转信站: BYR!news.byr.edu.cn!news.newsmth.net!NEWSMTH
你自己编译过automake?
【 在 acalism (Lenny·既无意义,何必原谅?) 的大作中提到: 】
: 网络上的一个解决方法:
: 版权:网络转载请保留作者(foxcamel) 及 原文链接:http://www.ispig.net/index.php/archives/171
: 最近在重新编译php的时候,看到pecl官方网站已经挂出了sphinx的pecl扩展,于是就想尝试一下,在安装sphinx库的时候,需要先 build一个configure文件。自从安装fedora9之后,我还从来没有build过任何东西,所以没有料到会出问题。在执行 buildconf.sh的时候,遇到了这样�
: ...................
转信站: BYR!news.byr.edu.cn!news.newsmth.net!NEWSMTH
是的,所以得重新安装。。。
但/usr/share/automake下的文件却无法更新,我得手动修改。。。。。
【 在 skybluee (天蓝) 的大作中提到: 】
: 你自己编译过automake?
转信站: BYR!news.byr.edu.cn!news.newsmth.net!NEWSMTH
庆祝一下,哈哈
kbs_bbs$ ./autogen.sh
configure.ac:6: installing `./install-sh'
configure.ac:6: installing `./missing'
daemon/Makefile.am: installing `./depcomp'
configure.ac: installing `./ylwrap'
【 在 acalism (Lenny·既无意义,何必原谅?) 的大作中提到: 】
: 是的,所以得重新安装。。。
: 但/usr/share/automake下的文件却无法更新,我得手动修改。。。。。
转信站: BYR!news.byr.edu.cn!news.newsmth.net!NEWSMTH
这不是典型的没事找事嘛
【 在 acalism (Lenny·既无意义,何必原谅?) 的大作中提到: 】
: 标 题: Re: debian5.0下安装kbs,运行./autogen.sh出现问题
: 发信站: 水木社区 (Wed Oct 14 00:50:35 2009), 转信
:
: 是的,所以得重新安装。。。
: 但/usr/share/automake下的文件却无法更新,我得手动修改。。。。。
: 【 在 skybluee (天蓝) 的大作中提到: 】
: : 你自己编译过automake?
:
:
: --
:
: ※ 来源:·水木社区 newsmth.net·[FROM: 210.77.2.*]
转信站: BYR!news.byr.edu.cn!news.newsmth.net!NEWSMTH
版本太老,所以才安装了最新的。。。
【 在 JulyClyde (torred) 的大作中提到: 】
: 这不是典型的没事找事嘛