在Mac OS X 10.8上安装GraphicsMagick [英] Installing GraphicsMagick on Mac OS X 10.8

查看:24
本文介绍了在Mac OS X 10.8上安装GraphicsMagick的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在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 jpegbrew 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.

请帮帮我。提前谢谢。

推荐答案

尝试删除所有内容,然后重新开始:

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

最近解决了我的一些问题

这篇关于在Mac OS X 10.8上安装GraphicsMagick的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆