搞定LIBTOOL is undefined问题有方法可用[转载]
2014-08-27 15:14
253 查看
关于在linux系统中的LIBTOOL is undefined问题,很多网友都有问到要怎么的进行解决呢!那么今天我们就来看看具体的解决方法吧!
[plain]
configure.ac:10: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
+ automake --foreign --copy --add-missing -Woverride
src/common/compress/Makefile.am:9: Libtool library used but `LIBTOOL' is undefined
src/common/compress/Makefile.am:9: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/common/compress/Makefile.am:9: to `configure.ac' and run `aclocal' and `autoconf' again.
src/common/compress/Makefile.am:9: If `AC_PROG_LIBTOOL' is in `configure.ac', make sure
src/common/compress/Makefile.am:9: its definition is in aclocal's search path.
这个问题我也找了好久,最后看到两篇文章,记录下来:
观点一:
原因分析
aclocal是个扫描程序, 负责扫描configure.ac中所有的宏定义并展开,
上面产生的原因就是找不到LIBTOOL宏的定义之处造成的.
原因就是aclocal与libtool没有安装在一个相同目录下面
aclocal是去默认 安装目录 /usr/share/aclocal下面搜索所有的.m4文件找所定义的宏,
但是由于安装了多个aclocal,可能aclocal目录不存在,实际目录为/usr/share/aclocal1.10等,
这就造成了aclocal找不到m4文件的情况, 解决办法就是将文件夹aclocal1.10重命名为aclocal.
或者显示指定路径 aclocal -I /usr/share/aclocal1.10 -I /usr/share/libtool/m4 --install
或者把/usr/share/libtool/m4下面的文件都copy至/usr/share/aclocal1.10中.
观点二:
出现这个问题的原因主要有两个:
1.没有安装aclocal
解决方法:安装libtool
2.没有配置正确aclocal的库LIBTOOL.m4的路径
解决方法:
—-查看aclocal的路径 aclocal --print-ac-dir
—-如果相应的*.m4文件不在这个目录下,则重新配置路径,或是将相应的*.m4文件复制到这个路径下 (aclocal -I DIR)
小结:以上就是解决关于LIBTOOL is undefined问题的具体办法,有原因也有解决办法。以后如果网友们再次遇到这样的问题,那么自己也是可以解决啦!还是很简单的吧!
[plain]
configure.ac:10: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
+ automake --foreign --copy --add-missing -Woverride
src/common/compress/Makefile.am:9: Libtool library used but `LIBTOOL' is undefined
src/common/compress/Makefile.am:9: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/common/compress/Makefile.am:9: to `configure.ac' and run `aclocal' and `autoconf' again.
src/common/compress/Makefile.am:9: If `AC_PROG_LIBTOOL' is in `configure.ac', make sure
src/common/compress/Makefile.am:9: its definition is in aclocal's search path.
这个问题我也找了好久,最后看到两篇文章,记录下来:
观点一:
原因分析
aclocal是个扫描程序, 负责扫描configure.ac中所有的宏定义并展开,
上面产生的原因就是找不到LIBTOOL宏的定义之处造成的.
原因就是aclocal与libtool没有安装在一个相同目录下面
aclocal是去默认 安装目录 /usr/share/aclocal下面搜索所有的.m4文件找所定义的宏,
但是由于安装了多个aclocal,可能aclocal目录不存在,实际目录为/usr/share/aclocal1.10等,
这就造成了aclocal找不到m4文件的情况, 解决办法就是将文件夹aclocal1.10重命名为aclocal.
或者显示指定路径 aclocal -I /usr/share/aclocal1.10 -I /usr/share/libtool/m4 --install
或者把/usr/share/libtool/m4下面的文件都copy至/usr/share/aclocal1.10中.
观点二:
出现这个问题的原因主要有两个:
1.没有安装aclocal
解决方法:安装libtool
2.没有配置正确aclocal的库LIBTOOL.m4的路径
解决方法:
—-查看aclocal的路径 aclocal --print-ac-dir
—-如果相应的*.m4文件不在这个目录下,则重新配置路径,或是将相应的*.m4文件复制到这个路径下 (aclocal -I DIR)
小结:以上就是解决关于LIBTOOL is undefined问题的具体办法,有原因也有解决办法。以后如果网友们再次遇到这样的问题,那么自己也是可以解决啦!还是很简单的吧!
相关文章推荐
- 搞定LIBTOOL is undefined问题有方法可用
- LIBTOOL is undefined 问题的解决方法
- (转载)Undefined variable: PHP_SELF的问题解决方法
- LIBTOOL is undefined 解决方法 - 张立坤的博客 - 我的搜狐
- 【kaldi】Kaldi+CUDA安装向问题(含libtool is not installed.的解决方法)
- 转载:六类布线安装方法要点以及注意的问题
- [转载]搞定amd64 8.04下面mldonkey自动退出问题(段错误)
- "Sys is undefined" Sys 未定义错误解决方法
- Windows 中的“RPC Server is Unavailable”(RPC 服务器不可用)问题
- (转载)Java中文问题及最优解决方法
- 简单方法搞定日期格式转换的问题
- ArcSDE 安装过程出现问题以及解决方法(转载,收藏版)
- Apache 2乱码问题解决方法--转载中文php网
- [转载]Word——Word中Visio图无法打印中文问题解决方法
- 从eclipse3.4中启动tomcat6.0.16出现有关“SetPropertiesRule”错误的问题解决方法[转载]
- 轻松搞定电脑总是弹出“the computer is bing attacted”的问题
- 讲解数据库孤立用户和对象名无效问题的解决方法(转载)
- [Lucene.Net] 内存泄漏问题解决方法 (转载)
- 有关用virtual pc 安装Redhat的问题的解决方法(转载)
- [转载] 约瑟夫问题的数学方法(O(n))