首页 > 技术知识 > 正文

编译jffs2_tool时报错

WARNING: automake-1.15 is missing on your system.

本以为下载了对应的源码包装上就行了,没想到后面牵涉了好多问题,总结一下。

1.automake -v一下 版本太旧了, apt-get autoremove automake 删除

automake -v The program automake can be found in the following packages: * automake * automake1.10 * automake1.11 * automake1.4 * automake1.9 Try: apt-get install <selected package>

然后根据报错下载automake-1.15源码包,我下载的是automake-1.15.1.tar.gz下载地址是 :https://lists.gnu.org/archive/html/info-gnu/2017-06/msg00007.html ;下载后解压 tar -zxvf automake-1.15.1.tar.gz 然后 ./configure 接着就有出错了

configure: error: Autoconf 2.65 or better is required.

2.查询资料后知道了autoconf版本太低 autoconf -v

autoconf -v The program autoconf can be found in the following packages: * autoconf * autoconf2.13 Try: apt-get install <selected package>

依然是太低了,可以下一个autoconf-2.65 我这里下载的autoconf-2.68 原因很简单版本高一点,有备无患。这个是地址: http://ftp.gnu.org/gnu/autoconf/autoconf-2.68.tar.gz

继续./configure

configure: error: no acceptable m4 could be found in $PATH.

oh my god 又来!!!!

3.继续查资料,缺少 m4 , 下载m4-1.4.9.tar.gz 地址为:http://ftp.gnu.org/gnu/m4/m4-1.4.9.tar.gz

然后解压 进入首目录 ./configure ;make ;make install 顺利通过

然后安装 autoconf ./configure ;make ;make install 顺利通过

最后安装automake ./configure ;make ;make install 依然顺利通过

接着就可以进行其他编译了

猜你喜欢