How to fix “failed to run aclocal: No such file or directory”

Question: I am trying to build a program on Linux. The development release of the program comes with "autogen.sh" script. When I run it to create configure script, however, I am getting the following error:

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

How can I fix this problem?

The development release of a program source code often comes with autogen.sh which is used to prepare a build process, including verifying program functionality and generating configure script. This autogen.sh script then relies on autoreconf to invoke autoconf, automake, aclocal and other related tools.

The missing aclocal is part of automake package. Thus, to fix this error, install the following package.

On Debian, Ubuntu or Linux Mint:

$ sudo apt-get install automake

On CentOS, Fedora or RHEL:

$ sudo yum install automake
Download this article as ad-free PDF (made possible by your kind donation): 
Download PDF

Subscribe to Ask Xmodulo

Do you want to receive Linux related questions & answers published at Ask Xmodulo? Enter your email address below, and we will deliver our Linux Q&A straight to your email box, for free. Delivery powered by Google Feedburner.


Support Xmodulo

Did you find this tutorial helpful? Then please be generous and support Xmodulo!

One thought on “How to fix “failed to run aclocal: No such file or directory”

  1. Sadly, I had problems compiling "linux-utils" due to aclocal issues. Thing is, I have automake installed, so that was not the issue. However, searching the net, I did find a solution to another package with the same problem, so I figured I'd share it here too, to help others.. Run these commands (case sensitive, of course!):

    touch NEWS AUTHORS
    autoreconf -i
    ./configure
    make

    Good luck!

Leave a comment

Your email address will not be published. Required fields are marked *