海思平台编译环境搭建-额外(不包含在官方文档内)

步骤 3. 安装 automake1.15.1
参考博客:https://blog.csdn.net/qq_30549833/article/details/72955881
mtd-utils2.0.2 依赖于 automake1.15.1 版本,因此需要将服务器 automake 版本升级到1.15.1,方式如下:
(1)安装m4
wget http://mirrors.kernel.org/gnu/m4/m4-1.4.13.tar.gz  
&& tar -xzvf m4-1.4.13.tar.gz  
&& cd m4-1.4.13  
&& ./configure --prefix=/usr/local/m4
sudo make && make install
export PATH=/usr/local/m4/bin:$PATH
(2)安装autoconf
wget http://mirrors.kernel.org/gnu/autoconf/autoconf-2.65.tar.gz  
&& tar -xzvf autoconf-2.65.tar.gz  
&& cd autoconf-2.65  
&& ./configure --prefix=/usr/local/autoconf
sudo make && make install
export PATH=/usr/local/autoconf/bin:$PATH
(3)删除原有 automake 版本
sudo apt-get autoremove automake
(4)下载 1.15.1 版本
Windows 上使用浏览器访问 automake 工程 url 并下载对应源码包:
https://lists.gnu.org/archive/html/info-gnu/2017-06/msg00007.html
linux 下面可以通过命令行下载
wget ftp://ftp.gnu.org/gnu/automake/automake-1.15.1.tar.gz
(5)编译安装 automake1.15.1
tar zxvf automake-1.15.1.tar.gz
cd automake-1.15.1/
./configure --prefix=/usr/local/automake
make
sudo make install
export PATH=/usr/local/automake/bin:$PATH
————————————————
版权声明:本文为CSDN博主「最爱酸豆角」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/ztp123456/article/details/97660603

原文地址:https://www.cnblogs.com/sunnyside/p/12837457.html