ubuntu下安装autotools工具
本文参考了:http://www.linuxidc.com/wap.aspx?nid=36616&p=1&cp=2&cid=6&sp=1019http://blog.chinaunix.net/uid-25100840-id-271131.html转载请注明出处---------------谢谢首先需要下载:m4-1.4.14.tar.gzautoconf-2.13.tar
本文参考了:
http://www.linuxidc.com/wap.aspx?nid=36616&p=1&cp=2&cid=6&sp=1019
http://blog.chinaunix.net/uid-25100840-id-271131.html
转载请注明出处---------------谢谢
首先需要下载:
m4-1.4.14.tar.gz
autoconf-2.13.tar.gz 或者 autoconf-2.59.tar.gz
automake-1.9.6.tar.gz
安装顺序:
安装顺序是M4 -> autoconf -> automake (很重要!!!!)
每个文件的安装:
tar -xzvf *.tar.gz
cd 到对于的解压后的文件夹:
./configure --prefix=/op/你的目录---------------你的安装目录
make
make install
完了之后再配置好路径:
下面是会遇到的问题......以及解决方法(自己搞的..仅供参考)
注意在安装M4的时候会出现一个bug:
/m4-1.4.14/src/path.c:118: undefined reference to `S_ISDIR'的错误
据说这个bug是源码包的bug......
解决方案:vi ./m4-1.4.14/src/path.c 在#include”m4.h” 后添加:
#include”sys/stat.h”----再安装m4就ok.....
安装了m4后,然后再安装autoconf:
我这里试了两个版本:autoconf-2.13.tar.gz 和 autoconf-2.59.tar.gz
一、安装第一个autoconf-2.13.tar.gz后,然后再/etc/bash.bashrc中添加路径,然后在,source一下配置文件。
二、在安装automake时遇到了问题:
checking whether autoconf is installed... yes
checking whether autoconf works... no
configure: error: The installed version of autoconf does not work.
Please check config.log for error messages before this one.
上面呢的问题是检测到已经安装了autoconf但是没有正常工作....在网上跑了一大圈,还是没找到具体的解决方案,只能用下策了,换了一个autoconf的版本
我换用了autoconf-2.59.tar.gz ,一下就ok了.....
上面的资源都会上传,但是由于我下载时需要一点积分,因而,见谅各位,我也要点积分...谅解
更多推荐
所有评论(0)