Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am tring to compile the source code of libming 0.4.2 on Mac OS X 10.7.4 x64 and getting the following error when trying to run the aclocal command with sudo privileges:

$ sudo aclocal
Can't locate Automake/ in @INC (@INC contains: /usr/bin/../share/automake-1.10
/Library/Perl/5.12/darwin-thread-multi-2level /Library/Perl/5.12
/Network/Library/Perl/5.12/darwin-thread-multi-2level /Network/Library/Perl/5.12
/Library/Perl/Updates/5.12.3 /System/Library/Perl/5.12/darwin-thread-multi-2level
/System/Library/Perl/5.12 /System/Library/Perl/Extras/5.12/darwin-thread-multi-2level
/System/Library/Perl/Extras/5.12 .) at /usr/bin/aclocal line 43.
BEGIN failed--compilation aborted at /usr/bin/aclocal line 43.

Xcode and Xcode command line tools are already installed in the system. I'm also able to compile the source on Mac OS X 10.6 i386.

What could be the problem and how can I fix it?

share|improve this question
up vote 1 down vote accepted

The following steps worked for me on OS X 10.7 x64:

  1. Install MacPorts
  2. Enter the following commands one by one:

    sudo port install automake
    sudo port install autoconf
    sudo port install libtool
    sudo port install intltoo 
    sudo port install pkgconfig
    sudo port install cmake
    sudo glibtoolize --ltdl --force --copy
    sudo autoreconf
  3. Build your code using the following commands:

    sudo ./configure
    sudo make
    sudo make install
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.