macos - 在 Mac OS X 10.8 上安装 GraphicsMagick

标签 macos node.js osx-mountain-lion homebrew graphicsmagick

我正在尝试在 Mountain Lion 上安装 GraphicsMagick,但遇到了问题。我尝试了所有可以在博客和其他 stackoverflow 问题中搜索的东西,但没有任何效果。所以我把我在每个命令上得到的所有错误都放在了这里。请看看并帮助我。

当我运行时

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

最近解决了我一些问题

关于macos - 在 Mac OS X 10.8 上安装 GraphicsMagick,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17756587/

相关文章:

bash - 递归符号链接(symbolic link)目录树

c++ - 通过 FireMonkey/C++ 在 OS X 中寻址 COM

node.js - Redis 使用 node.js 占用内存

javascript - lowdb 添加/编辑/更新/删除成功,但需要使用 if/then/else 语句对更新部分进行一些更改

tcl - WordNet 3.0 无法安装在 OS X Mountain Lion (10.8) 上

ios - 有没有办法报告 Apple 文档中的错误?

linux - 如何在 Mac shell 脚本中从 inet ip 中查找/grep 以太网接口(interface) (en)

javascript - 如何避免在node.js中使用模块?

macos - OSX Mountain Lion 上的 Help Indexer.app 在哪里?

objective-c - 打开我自己的 Mac 应用程序首选项