2013-05-07 107 views
8

我想在山獅安裝autoconf的觀點自制,我這樣做$ brew install autoconf和我Autoconf沒有鏈接到自制軟件,如何鏈接它?

Warning: Could not link autoconf. Unlinking... Error: The brew link step did not complete successfully The formula built, but is not symlinked into /usr/local You can try again using brew link autoconf ==> Summary /usr/local/Cellar/autoconf/2.69: 69 files, 2.0M, built in 52 seconds server:~ europemart$ brew link autoconf Linking /usr/local/Cellar/autoconf/2.69... Warning: Could not link autoconf. Unlinking... Error: Could not symlink file: /usr/local/Cellar/autoconf/2.69/bin/ifnames Target /usr/local/bin/ifnames already exists. You may need to delete it. To force the link and delete this file, do: brew link --overwrite formula_name

當我試圖$ brew install autoconf我再次得到:

Warning: autoconf-2.69 already installed, it's just not linked

我從來沒有用過自制軟件,幾乎沒有任何與終端的經驗。任何人都可以幫助我,並正確安裝autoconf?

乾杯

回答

-3

就像在錯誤消息稱:

brew link --overwrite autoconf 
14

我以前有同樣的問題。其結果是:

Error: Permission denied - /usr/local/share/emacs/site-lisp/autotest-mode.elc 

與--dry跑跑步:

brew link --overwrite --dry-run autoconf 

給出的信息是:

Would remove: 
    ... 
    /usr/local/share/emacs/site-lisp/autoconf-mode.el 
    ... 
    /usr/local/share/autoconf/m4sugar/version.m4 
    ... etc. 

所以我搬到即暫時兩個文件夾/usr/local/share/autoconf//usr/local/share/emacs/(emacs的文件夾 - 以防萬一)從它的默認放置處開始,然後運行:

brew link --overwrite autoconf 

它的工作原理。雖然,這不是一個很好的方法,但在我嘗試brew doctorbrew updatebrew tap homebrew/dupes之前,它沒有解決它。看來問題出現在brew install操作失敗之後。

2

$sudo

$sudo brew link --overwrite --dry-run autoconf 

OR

$sudo brew link --overwrite autoconf 
運行