web-dev-qa-db-ja.com

どのように私は自作でimagemagickをインストールしますか?

私はOSX LionにImagemagickをインストールしようとしていますが、何かが期待通りに動作していません。

-> 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 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/Ruby-1.9.2-p180@global/bin
passenger-config

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

そして、はい、私はXCode 4.1をインストールして実行しています。

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

私にとって最も早い解決策は次のとおりです。

cd /usr/local
git reset --hard FETCH_HEAD

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

それでもうまくいかない場合は、/Library/Caches/Homebrewにimagemagickのファイルやフォルダが含まれていないことを確認してください。削除したら削除します。

80
Marc L

あなたが試すことができます:

brew update && brew install imagemagick

148
davarisg
brew install imagemagick

例えばgsもインストールすることを忘れないでください。例えばpdfを画像に変換したい場合は依存関係になります。

brew install ghostscript
56
Abdennour TOUMI