无法在OSX Mavericks上安装imagemagick和rmagick
我遇到安装imagemacgick和rmagick的问题
I'm having problems to install imagemacgick and rmagick
➜ scripts brew install imagemagick
Error: You must `brew link freetype' before imagemagick can be installed
➜ scripts brew install freetype
Warning: freetype-2.5.3_1 already installed
➜ scripts brew unlink freetype && brew link freetype
Unlinking /usr/local/Cellar/freetype/2.5.3_1... 1 symlinks removed
Linking /usr/local/Cellar/freetype/2.5.3_1... Error: No such file or directory - /usr/local/Cellar/freetype/2.5.3/include/freetype2
brew remove freetype && brew install freetype
卸载/usr/local/Cellar/freetype/2.5.3_1 ...
==>正在下载 https://downloads.sf.net/project /machomebrew/Bottles/freetype-2.5.3
已下载:/ Library/Caches/Homebrew/freetype-2.5.3_1.mavericks.bottle.1.tar.gz
==>浇注freetype-2.5.3_1.mavericks.bottle.1.tar.gz
错误: brew链接期间发生意外错误
步骤
公式已构建,但没有符号链接到/ usr / local
没有这样的文件或目录 - /usr/local/Cellar/freetype/2.5.3/include/freetype2
错误:没有这样的文件或目录 - / usr / local / Cellar / freetype / 2.5.3 / include / freetype2
Uninstalling /usr/local/Cellar/freetype/2.5.3_1...
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/freetype-2.5.3
Already downloaded: /Library/Caches/Homebrew/freetype-2.5.3_1.mavericks.bottle.1.tar.gz
==> Pouring freetype-2.5.3_1.mavericks.bottle.1.tar.gz
Error: An unexpected error occurred during the brew link
step
The formula built, but is not symlinked into /usr/local
No such file or directory - /usr/local/Cellar/freetype/2.5.3/include/freetype2
Error: No such file or directory - /usr/local/Cellar/freetype/2.5.3/include/freetype2
freetype存在一些问题
There is some problem with freetype
我找到了一个解决方案这里:
I've found a solution here:
- brew uninstall freetype
- brew install https://raw.github.com/mxcl/homebrew/04406ae9a0aa093aaaf61ab06dc1d81672c41fee/Library/Formula/freetype.rb
- brew install freetype
- brew install imagemagick
- brew uninstall freetype
- brew install https://raw.github.com/mxcl/homebrew/04406ae9a0aa093aaaf61ab06dc1d81672c41fee/Library/Formula/freetype.rb
- brew install freetype
- brew install imagemagick
它对我有用
更新:
似乎不建议直接签出存储库,您可以使用带有版本哈希的链接安装
我已相应地更新了我的答案
Update: It seems it's not recommended to checkout the repository directly and you can install by using a link with the revision hash I've updated my answer accordingly
另外,请注意我使用了比链接更新的哈希,否则imagemagick会抱怨libfreetype.6.dylib的版本
Also, please note that i've used a more recent hash than the one in the link, otherwise imagemagick will complain about the version of libfreetype.6.dylib