我尝试在 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 上编译源代码。
可能存在什么问题?我该如何解决?
答案1
以下步骤对我在 OS X 10.7 x64 上有效:
- 安装麦金塔
逐个输入以下命令:
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
使用以下命令构建代码:
sudo ./configure sudo make sudo make install