2012-08-09 48 views
5

安裝鏈接: ostaptan:〜ostap $釀造安裝ImageMagick的 - 禁用OpenMP的--from源啤酒與ImageMagick的

==> Downloading http://downloads.sf.net/project/machomebrew/mirror/ImageMagick-6.7.7-6.tar.bz2 
Already downloaded: /Library/Caches/Homebrew/imagemagick-6.7.7-6.tar.bz2 
==> Patching 
patching file configure 
Hunk #1 succeeded at 32371 (offset 447 lines). 
==> ./configure --disable-osx-universal-binary --without-perl --prefix=/usr/local/Cellar/imagemagick/6.7.7-6 --enable-shared --disable-static 
==> make install 
Error: The linking step did not complete successfully 
The formula built, but is not symlinked into /usr/local 
You can try again using `brew link imagemagick' 
==> Summary 
/usr/local/Cellar/imagemagick/6.7.7-6: 1388 files, 32M, built in 61 seconds 

壞連接在安裝後鏈接:

ostaptan:wand ostap $ brew鏈接imagemagick

Linking /usr/local/Cellar/imagemagick/6.7.7-6... 

Error: Could not symlink file: /usr/local/Cellar/imagemagick/6.7.7-6/include/ImageMagick/wand/wand-view.h 

Target /usr/local/include/ImageMagick/wand/wand-view.h already exists. You may need to delete it. 

To force the link and delete this file, do: 
    brew link -f formula_name 

To list all files that would be deleted: 
    brew link -n formula_name 

如何鏈接???該怎麼辦??無法在任何地方找到答案!

回答

11

正如釀造link輸出建議,儘量

brew link -f imagemagick 

這應該清理舊的鏈接在/usr/local/include/ImageMagick/,然後鏈接到完成安裝所需的文件。

如果這不起作用,請檢查您的用戶是否有權寫入/usr/local/include/ImageMagick/*

1

小時後和試圖只爲我工作的事時間是:

sudo brew link --overwrite imagemagick 

(還要求/usr/local/bin/brewchownedroot

0

自制軟件不支持覆蓋sudo命令了。

sudo brew link --overwrite imagemagick 

錯誤:以root身份運行Homebrew非常危險,不再支持。 由於Homebrew不會放棄安裝權限,因此您將爲所有 構建腳本完全訪問您的系統。