2012-08-09 16 views
5

Installazione: ostaptan: ~ $ Ostap birra install ImageMagick --disable-OpenMP --from-sourceBrew collegamento con 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 

collega dopo cattivo collegamento a installare:

ostaptan: bacchetta 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 

Come collegare ??? Cosa fare?? Non riesci a trovare le risposte da nessuna parte!

risposta

11

Come suggerito nell'output di collegamento birra, provare

brew link -f imagemagick 

Questo dovrebbe ripulire vecchi link in /usr/local/include/ImageMagick/, e quindi collegare i file necessari per completare l'installazione.

Se ciò non funziona, verificare che l'utente abbia il permesso di scrivere su /usr/local/include/ImageMagick/*.

1

Dopo ore e ore di tentativi l'unica cosa che ha funzionato per me era:

sudo brew link --overwrite imagemagick 

(richiede anche /usr/local/bin/brew essere chowned-root)

0

Homebrew non supporta più il comando sudo sovrascrittura.

sudo brew link --overwrite imagemagick 

Errore: l'esecuzione di Homebrew come root è estremamente pericolosa e non è più supportata. Poiché Homebrew non rilascia privilegi di installazione, darebbe agli script di compilazione completi l'accesso completo al sistema.