autoconf --version

autoconf (GNU Autoconf) 2.59

automake --version

automake (GNU automake) 1.9.6

m4 --version

GNU M4 1.4.4

libtool --version

ltmain.sh (GNU libtool) 1.5.22

如果在上述版本的libtool遇到如下错误:

configure.ac:64: error: possibly undefined macro: AC_PROG_LIBTOOL

      If this token and others are legitimate, please use m4_pattern_allow.

      See the Autoconf documentation.

请升级libtool版本,下面这个版本测试通过:

libtool --version

libtool (GNU libtool) 2.4

下载网址:

http://mirrors.ustc.edu.cn/gnu/libtool/libtool-2.4.tar.gz

automake、autoconf和m4可以在http://ftp.gnu.org/gnu找到各种版本的源代码安装包。

如果过程中仍遇到如下错误:

../libtool: line 816: X--tag=CXX: command not found

../libtool: line 849: libtool: ignoring unknown tag : command not found

../libtool: line 816: X--mode=link: command not found

../libtool: line 966: *** Warning: inferring the mode of operation is deprecated.: command not found

../libtool: line 967: *** Future versions of Libtool will require -mode=MODE be specified.: command not found

gcc: no input files

gcc: no input files

gcc: no input files

gcc: no input files

../libtool: line 2120: X-D_GNU_SOURCE: command not found

../libtool: line 2120: X-DTHREADED: command not found

../libtool: line 2120: X-rdynamic: command not found

../libtool: line 2120: X-Wall: command not found

../libtool: line 2120: X-fPIC: command not found

../libtool: line 2120: X-g: command not found

../libtool: line 2120: X-rdynamic: command not found

../libtool: line 2120: X-fPIC: command not found

../libtool: line 2284: Xiflow_download: command not found

../libtool: line 2289: X: command not found

../libtool: line 2296: Xiflow_download: command not found

../libtool: line 2436: X-lrt: command not found

../libtool: line 2436: X-lz: command not found

../libtool: line 2436: X-lpthread: command not found

../libtool: line 2436: X-lm: command not found

../libtool: line 2436: X-ldl: command not found

../libtool: line 2436: X-lrt: command not found

../libtool: line 2436: X-lz: command not found

../libtool: line 2436: X-lpthread: command not found

../libtool: line 2436: X-lm: command not found

../libtool: line 2436: X-ldl: command not found

这个错误据说是libtool版本问题,需要回退版本,但实际上不用回退版本也可以解决,在libtool(请注意不是/usr/bin/libtool,而是和configure同一目录下的,在mooon中,就是src目录)文件中找到下列行:

# An echo program that protects backslashes.

ECHO="printf %s\\n"

将ECHO一句换成:echo="echo",问题即可得到解决,如果没有ECHO="printf %s\\n"一行,但有ECHO="echo"一行,那解决方法是相同的。

mooon模板的automake、autoconf、m4和libtool版本信息的更多相关文章

  1. 大型项目使用Automake/Autoconf完成编译配置

    http://www.cnblogs.com/xf-linux-arm-java-android/p/3590770.htmlhttp://blog.csdn.net/zengraoli/articl ...

  2. MAC下安装automake autoconf工具

    I noticed today that while Mac OS 10.6 (specifically, 10.6.2) comes with automake and autoconf, the ...

  3. 大型项目使用Automake/Autoconf完成编译配置(标准的编译过程已经变成了简单的三部曲:configure/make/make install,)

    使用过开源C/C++项目的同学们都知道,标准的编译过程已经变成了简单的三部曲:configure/make/make install, 使用起来很方便,不像平时自己写代码,要手写一堆复杂的Makefi ...

  4. C#,C++修改vs文件模板,添加自定义代码版权版本信息

    简单型的修改类似该路径下的模板文件即可(vs版本或安装路径不同路径可能不同) C#: 模板参数参考https://msdn.microsoft.com/zh-cn/library/eehb4faa.a ...

  5. 自动生成 Makefile (automake/autoconf 入门)

    作为Linux 下的程序开发人员,大家一定都遇到过Makefile ,用make 命令来编译自己写的程序确实是很方便.一般情况下,大家都是手工写一个简单Makefile ,如果要想写出一个符合自由软件 ...

  6. automake,autoconf使用详解

    本文地址: http://www.laruence.com/2009/11/18/1154.html 文章转自: http://www.linuxcomputer.cn/ 作为Linux下的程序开发人 ...

  7. automake autoconf 使用详解

    本文地址: http://www.laruence.com/2009/11/18/1154.html 文章转自: http://www.linuxcomputer.cn/ 作为Linux下的程序开发人 ...

  8. automake/autoconf的简单例子

    参考文章1:http://loftor.com/archives/automake.html 参考文章2:http://www.blogjava.net/huyi2006/articles/18790 ...

  9. libtool版本过新的问题

      安装过程中出现: libtool: Version mismatch error. This is libtool 2.4.2, but the libtool: definition of th ...

随机推荐

  1. HDU 之 City Game

                                                                                      City Game Time Lim ...

  2. 《python基础教程(第二版)》学习笔记 基础部分(第1章)

    <python基础教程(第二版)>学习笔记 基础部分(第1章)python常用的IDE:Windows: IDLE(gui), Eclipse+PyDev; Python(command ...

  3. EntityFramework 学习 一 Update Existing Entity using DBContext in Disconnected Scenario

    using System; using System.Collections.Generic; public partial class Student { public Student() { th ...

  4. 算法(Algorithms)第4版 练习 2.2.26

    在sort函数创建aux数组: package com.qiusongde; import edu.princeton.cs.algs4.In; import edu.princeton.cs.alg ...

  5. Spark操作算子本质-RDD的容错

    Spark操作算子本质-RDD的容错spark模式1.standalone master 资源调度 worker2.yarn resourcemanager 资源调度 nodemanager在一个集群 ...

  6. Struts2的使用

    Struts2的核心类库 名称 说明 Struts2-core-2.3.4.jar 核心类库 Xwork-core-2.3.4.jar Xwork的核心类库 Ognl-3.0.5.jar Ognl表达 ...

  7. js中innerText/value/innerHTML三个属性的区别

    在做一个两个窗口之间的简单信息交互时遇见了一点问题,导致信息无法正常的传递. 最后发现问题是在innerText和value这两个属性上,先简单的总结记录一下几个相似的属性的作用: 1.innerTe ...

  8. 1030 Travel Plan (30)(30 分)

    A traveler's map gives the distances between cities along the highways, together with the cost of ea ...

  9. JavaScript RegExp 正则表达式基础详谈

    前言: 正则对于一个码农来说是最基础的了,而且在博客园中,发表关于讲解正则表达式的技术文章,更是数不胜数,各有各的优点,但是就是这种很基础的东西,如果我们不去真正仔细研究.学习.掌握,而是抱着需要的时 ...

  10. CentOS6 下Samba服务器的安装与配置

    原地址:http://www.cnblogs.com/mchina/archive/2012/12/18/2816717.html 一.简介 Samba是一个能让Linux系统应用Microsoft网 ...