尝试在OS X 10.7.4 x64中运行aclocal命令时找不到Automake / Config.pm


1

我想在Mac OS X 10.7.4 x64上编译libming 0.4.2的源代码,并在尝试运行时遇到以下错误 aclocal 具有sudo权限的命令:

$ sudo aclocal
Password:
Can't locate Automake/Config.pm 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和Xcode命令行工具已安装在系统中。我也能够在Mac OS X 10.6 i386上编译源代码。

可能是什么问题,我该如何解决?

Answers:


1

以下步骤适用于OS X 10.7 x64:

  1. 安装 MacPorts的
  2. 逐个输入以下命令:

    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. 使用以下命令构建代码:

    sudo ./configure
    sudo make
    sudo make install
    
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.