ubuntu在程序编译过程中,出现如下错误的,解决方法
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I m4 --output=aclocal.m4t
Can't exec "aclocal": No such file or directory at /usr/share/autoconf/Autom4te/FileUtils.pm line 326.
autoreconf: failed to run aclocal: No such file or directory
make: *** No rule to make target `clean'. Stop.
make: *** No targets specified and no makefile found. Stop.
aclocal是automake的一个文件。是一个alternatives的软链接,如下所示
root@desktop:~# ls -la /usr/bin/acl*
lrwxrwxrwx 1 root root 25 1月 16 08:11 /usr/bin/aclocal -> /etc/alternatives/aclocal
lrwxrwxrwx 1 root root 12 7月 29 15:34 /usr/bin/aclocal-1.14 -> aclocal-1.15
-rwxr-xr-x 1 root root 36792 1月 26 2017 /usr/bin/aclocal-1.15
只所以出现这种情况,大体是安装包的顺序前后有出入,重新安装一下相关包就能够解决
示例:ubuntu14安装离线deb包的方法
dpkg -i autotools-dev_20130810.1_all.deb autoconf_2.69-6_all.deb automake_1.15-6_all.deb
Tags:
aclocal automake ubuntu
aclocal automake ubuntu