本篇文章详细说明了在CentOS7上编译时遇到的常见问题:aclocal-1.14: command not found错误。这个问题通常是因为专案预期使用aclocal-1.14,但系统实际上安装的是aclocal-1.15,导致版本不匹配。文章提供了一种有效的解决方法,为面临此类编译错误的开发者来说,提供了非常实用的指引。
使用centos7编译baidupcs出现如下错误
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /root/BaiduPCS/build-aux/missing aclocal-1.15 -I m4
/root/BaiduPCS/build-aux/missing: line 81: aclocal-1.15: command not found
WARNING: 'aclocal-1.15' is missing on your system.
You should only need it if you modified 'acinclude.m4' or
'configure.ac' or m4 files included by 'configure.ac'.
The 'aclocal' program is part of the GNU Automake package:
<http://www.gnu.org/software/automake>
It also requires GNU Autoconf, GNU m4 and Perl in order to run:
<http://www.gnu.org/software/autoconf>
<http://www.gnu.org/software/m4/>
<http://www.perl.org/>
make: *** [aclocal.m4] Error 127
先执行
然后再make,问题就解约了。
参考:
csdn博客
在CentOS 7和Ubuntu 14.03上安装Build Essentials