2012-08-09 26 views
5

Cài đặt: ostaptan: ~ Ostap $ brew cài đặt ImageMagick --disable-OpenMP --from nguồnBrew nối với 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 

liên kết sau xấu liên kết trong cài đặt:

ostaptan: wand ostap $ brew link 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 

Cách liên kết ??? phải làm gì ?? Không thể tìm thấy câu trả lời ở bất cứ đâu!

Trả lời

11

Như đã đề cập trong brew liên kết đầu ra, hãy thử

brew link -f imagemagick 

này nên dọn dẹp liên kết cũ trong /usr/local/include/ImageMagick/, và sau đó liên kết các tập tin cần thiết để hoàn thành quá trình cài đặt.

Nếu điều này không hoạt động, hãy kiểm tra xem người dùng của bạn có quyền ghi vào /usr/local/include/ImageMagick/* hay không.

1

Sau giờ làm và giờ cố gắng điều duy nhất mà làm việc cho tôi là:

sudo brew link --overwrite imagemagick 

(Cũng đòi hỏi /usr/local/bin/brewchowned-root)

0

Homebrew không hỗ trợ lệnh sudo ghi đè nữa.

sudo brew link --overwrite imagemagick 

Lỗi: Chạy Homebrew làm gốc cực kỳ nguy hiểm và không còn được hỗ trợ. Vì Homebrew không bỏ đặc quyền khi cài đặt, bạn sẽ cung cấp cho tất cả các kịch bản lệnh xây dựng đầy đủ quyền truy cập vào hệ thống của bạn.

Các vấn đề liên quan