26

Mountain Lion に GraphicsMagick をインストールしようとしていますが、問題があります。ブログやその他のスタックオーバーフローの質問で検索できるすべてのことを試しましたが、何も機能しませんでした. したがって、各コマンドで発生するエラーの完全なスタックを配置しました。見て、助けてください。

私が走るとき

brew install graphicsmagick

私はこれを取得します

Warning: Could not link jpeg. Unlinking...
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
You can try again using `brew link jpeg'

Warning: Could not link libpng. Unlinking...
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
You can try again using `brew link libpng'

そして最後に私は得ています

==> make install
Warning: Could not link graphicsmagick. Unlinking...
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
You can try again using `brew link graphicsmagick'

Possible conflicting files are:
==> Summary
  /usr/local/Cellar/graphicsmagick/1.3.18: 283 files, 10M, built in 52 seconds

今、しようとした場合、brew link jpegまたはbrew link libpngこのエラーが発生した場合

Linking /usr/local/Cellar/jpeg/8d... Warning: Could not link jpeg. Unlinking...

Error: Could not symlink file: /usr/local/Cellar/jpeg/8d/bin/wrjpgcom
Target /usr/local/bin/wrjpgcom already exists. You may need to delete it.
To force the link and overwrite all other conflicting files, do:
  brew link --overwrite formula_name

To list all files that would be deleted:
  brew link --overwrite --dry-run formula_name

上書き方法を試してみるbrew link --overwrite jpegとうまくいきました。でも ' brew link --overwrite libpng' わかりました

Linking /usr/local/Cellar/libpng/1.5.14... Warning: Could not link libpng. Unlinking...

Error: Permission denied - /usr/local/share/man/man5/png.5

その後、試してみると次のbrew link graphicsmagickようになります。

Linking /usr/local/Cellar/graphicsmagick/1.3.18... Warning: Could not link graphicsmagick. Unlinking...

Error: Could not symlink file: /usr/local/Cellar/graphicsmagick/1.3.18/share/man/man5/quantize.5
/usr/local/share/man/man5 is not writable. You should change its permissions.

私を助けてください。前もって感謝します。

4

1 に答える 1

38

すべてを削除してからやり直してください:

brew uninstall imagemagick graphicsmagick libpng jpeg
brew cleanup -s
brew install graphicsmagick

最近いくつかの問題を解決しました

于 2013-07-24T23:33:34.483 に答える