failed to run aclocal: No such file or directory 解决方法(ubuntu)

Author: Bruce Liu Posted on: 2021-01-16 08:44:17 Visited: 789

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

相关主题:

留言信息:

......期待您的留言!


增加留言、提问或者评论,不用注册,匿名提交,你提交的信息经过审核后才会显示:


© 2008-2022 CunYouLu存有录博客 村友录 存游录 鲁ICP备08005943号