2012-08-06 69 views
0

我試圖從源代碼安裝在Intel Mac OSX 10.7.4 x64上的libming 0.4.2(我已經成功地將它安裝在Intel Mac OSX 10.6 I386),但它給了我下面的錯誤,當我嘗試運行./configure(既沒有須藤)libming 0.4.2從源代碼構建時在OSX 10.7.4 x64上安裝時出錯

config.status: creating util/Makefile 
config.status: creating util/ming-config 
config.status: creating ming.spec 
config.status: creating src/ming_config.h 
config.status: src/ming_config.h is unchanged 
config.status: executing depfiles commands 
config.status: executing libtool commands 
sed: config/ltmain.sh: No such file or directory 
sed: config/ltmain.sh: No such file or directory 
mv: rename libtoolT to libtool: No such file or directory 
cp: libtoolT: No such file or directory 
chmod: libtool: No such file or directory 

當然,之後make install的失敗。 :( (Xcode和Xcode的命令行工具都已經安裝)

+0

它無法創建這些文件可能。檢查文件權限。 – askmish 2012-08-06 10:37:11

+0

我使用sudo權限運行./configure。 – gmuhammad 2012-08-06 10:39:27

+0

在運行'./configure'之前試試'glibtoolize --force'確實可以解決問題嗎? – askmish 2012-08-06 10:53:28

回答

0

繼指令/命令在Mac上爲我的作品OSX 10.7.4 x64。

1. Install mac ports from http://www.macports.org/ 
2. sudo port install automake 
3. sudo port install autoconf 
4. sudo port install libtool 
5. sudo port install intltoo 
6. sudo port install pkgconfig 
7. sudo port install cmake 
8. glibtoolize --ltdl --force --copy 
9. autoreconf 

and then build your code using 

./configure 
make 
make install 
+1

真的沒有理由在上面的sudo下運行除'port'之外的任何東西,也許'make install'。 'glibtoolize','autoreconf','configure'和'make'都應該像普通用戶那樣運行。 – fgp 2015-01-30 15:07:38

+0

同意。 sudo從'glibtoolize','autoreconf','configure'和'make'中刪除 – gmuhammad 2015-02-03 07:42:25

2

這些命令可以工作(一步一步)

aclocal 
glibtoolize --force 
autoheader 
autoconf 
automake 
./configure 
make 
make install 

libming 0.4.2可能有這樣的問題,因爲,它停在RC1 (尤指在Intel Mac參見:HTTP://www.libming.org/Mac_OS_X_Installation)。

嘗試安裝更高版本0.4.3和0.4.4

+0

在aclocal上得到以下錯誤: $ sudo aclocal 無法在@INC中找到Automake/Config.pm(@INC包含:/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 /達爾文線程多2級/系統/庫/ Perl/12 /系統/庫/ Perl/Extra/)在/ usr/bin/aclocal第43行。 BEGIN失敗 - 編譯在/ usr/bin/aclocal第43行中止。 – gmuhammad 2012-08-06 12:23:02

+0

我正在處理的項目是0.4.2特定的,我不確定未來版本是否兼容或不。 – gmuhammad 2012-08-06 12:24:54