2011-08-13 15 views
142

OSX LionにImagemagickをインストールしようとしていますが、何かが期待通りに動作しません。imagemagickをhomebrewにインストールするにはどうすればいいですか?

-> brew doctor 
We couldn't detect gcc 4.0.x. Some formulae require this compiler. 

Some "config" scripts were found in your path, but not in system or Homebrew folders. 

`./configure` scripts often look for *-config scripts to determine if software packagesare installed, and what additional flags to use when compiling and linking. 

Having additional scripts in your path can confuse software installed via Homebrew if the config script overrides a system or Homebrew provided script of the same name. 

/Users/kleber/.rvm/gems/[email protected]/bin 
passenger-config 

Setting DYLD_LIBARY_PATH can break dynamic linking. 
You should probably unset it. 

をとはい、私はXCodeの4.1がインストールされ、実行されている:

-> brew install imagemagick 

/usr/local/git/bin/git 
==> Cloning https://github.com/adamv/ImageMagick.git 
Cloning into /Users/klebershimabuku/Library/Caches/Homebrew/imagemagick--git... 
fatal: https://github.com/adamv/ImageMagick.git/info/refs not found: did you run git  update-server-info on the server? 
Error: Failure while executing: git clone --depth 1 https://github.com/adamv/ImageMagick.git /Users/kleber/Library/Caches/Homebrew/imagemagick--git 

醸造医師は述べています。

-> brew update 
From http://github.com/mxcl/homebrew 
* branch   master  -> FETCH_HEAD 
Already up-to-date. 
+5

あなたは'brew update'が必要です。私たちはImageMagick用に別のミラーを使用しています。 –

+1

私はすでに醸造更新をしました。それはすでに最新です。 –

+2

手動でアップデートする必要があるかもしれませんが、最近問題が発生しています:https://github.com/mxcl/homebrew/issues?labels=update-install-issue&sort=updated&direction=desc&state=open&page=1 –

答えて

71

最速の修正プログラムが次のことをやっていた:

cd /usr/local 
git reset --hard FETCH_HEAD 

それから私はbrew install imagemagickを再試行し、それが正しく代わりadamvの、新しいミラーからパッケージを引っ張りました。

これで解決しない場合は、/Library/Caches/Homebrewに画像ファイルまたはフォルダが含まれていないことを確認してください。削除する場合は削除してください。

+1

これは今日はもう動作しません。今問題が発生した場合、これは、今では機能していないリポジトリに依存する古いバージョンをインストールしようとしているためです。 – MattiSG

+0

実行ファイルはどこにありますか? – chovy

+1

これは今日でも私のためにはまだ動作します。 – cevaris

3

Lionにアップグレードした後にxcodeを再インストールしましたか?手前にインストールしていた場合、そのインストールはもう機能しません。 imagemagickではなく、私は同じ問題を抱えていました。私にとって

-9

はあなたが行うことができます:

php55は、あなたのPHPのバージョンがある
brew reinstall php55-imagick 

+3

質問には答えられませんが、それは私を助けました。私はちょうどPHP ImageMagickの式の名前を知りたがっていて、検索エンジンが私をここに導いてくれました。 – Glutexo

95

あなたは試みることができる:

brew update && brew install imagemagick

+5

これはMac OS 10.11上で完全に私のために働いた。1 El Capitan – otmezger

+6

「brew upgrade」は自作のすべてをアップグレードすることに注意してください。 – Apie

31
brew install imagemagick 

をもgsあなたは、たとえば画像にPDFファイルを変換したい場合は、依存関係であるインストールすることを忘れないでください:

brew install ghostscript 
関連する問題