node.js 在 Mac OS X 10.8 上安装 GraphicsMagick
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17756587/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Installing GraphicsMagick on Mac OS X 10.8
提问by Saransh Mohapatra
I am trying to install GraphicsMagick on Mountain Lion and having problems. I tried all the things that I could search for in blogs and other stackoverflow questions but nothing worked. So I have put the full stack of errors I get on each command. Please look and help me out.
我正在尝试在 Mountain Lion 上安装 GraphicsMagick 并且遇到问题。我尝试了所有可以在博客和其他 stackoverflow 问题中搜索的内容,但没有任何效果。所以我已经把我在每个命令上得到的完整错误堆栈。请看看并帮助我。
When I run
当我跑
brew install graphicsmagick
I get this
我明白了
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'
and
和
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'
and in the last I am getting
最后我得到了
==> 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
Now if I try to brew link jpegor brew link libpngI get this error
现在,如果我尝试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
If I try the overwrite method by doing brew link --overwrite jpegit worked. But 'brew link --overwrite libpng' I get this
如果我通过这样做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
And after that when I try brew link graphicsmagickI get:
之后,当我尝试时,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.
Please help me. Thanks in advance.
请帮我。提前致谢。
回答by maiis
Try removing everything and start again:
尝试删除所有内容并重新开始:
brew uninstall imagemagick graphicsmagick libpng jpeg
brew cleanup -s
brew install graphicsmagick
Solved me some issues recently
最近帮我解决了一些问题

