tom*_*opp 66 rmagick imagemagick bundler rvm osx-mountain-lion
我见过其他人在Mountain Lion上安装RMagick同样的问题但是没有一个建议的解决方案允许我成功安装rmagick.
这是我得到的错误消息:
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
checking for Ruby version >= 1.8.5... yes
checking for /usr/local/bin/gcc-4.2... yes
checking for Magick-config... yes
checking for ImageMagick version >= 6.4.9... yes
checking for HDRI disabled version of ImageMagick... yes
checking for stdint.h... yes
checking for sys/types.h... yes
checking for wand/MagickWand.h... yes
checking for InitializeMagick() in -lMagickCore... no
checking for InitializeMagick() in -lMagick... no
checking for InitializeMagick() in -lMagick++... no
Can't install RMagick 2.13.1. Can't find the ImageMagick library or one of the dependent libraries. Check the mkmf.log file for more detailed information.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Run Code Online (Sandbox Code Playgroud)
我做的事情:
Installed XCode
Installed the command line tools
Installed XQuartz
Installed homebrew with imagemagick library
Installed most recent version of RVM
Symlinked GCC
Uninstalled and reinstalled both RVM and imagemagick
Run Code Online (Sandbox Code Playgroud)
任何想法为什么我仍然无法下载rmagick?
Lon*_*cat 216
看来这是在Homebrew github repo(https://github.com/mxcl/homebrew/issues/16625)上报告的一个问题,指责rmagick本身不支持更新版本的imagemagick.在同一个问题上(https://github.com/mxcl/homebrew/issues/16625#issuecomment-11519383),你可以找到这个链接:https://coderwall.com/p/wnomjg 实际上对我有用.这就是他的所作所为:
cd /usr/local/Cellar/imagemagick/6.8.0-10/lib
ln -s libMagick++-Q16.7.dylib libMagick++.dylib
ln -s libMagickCore-Q16.7.dylib libMagickCore.dylib
ln -s libMagickWand-Q16.7.dylib libMagickWand.dylib
Run Code Online (Sandbox Code Playgroud)
希望这可以帮助.
Jar*_*eck 31
最新版本的rmagick(2.13.2)现在支持imagemagick 6.8
我们做了以下事情:
cd /usr/local
git checkout 834ce4a Library/Formula/imagemagick.rb
brew install imagemagick
Run Code Online (Sandbox Code Playgroud)
这将安装Imagemagick 6.7.7-6
小智 5
我知道这是旧的,但我已经通过了一堆这些回复,仍然无法让它工作.我发现另一种语言的随机链接实际上解决了我的问题(http://sugiarto.webmuapp.com/Package_MagickCore_was_not_found_in_the_pkg_config_search_path).看起来它正在寻找未设置的PKG_CONFIG_PATH.
什么对我有用:
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
Run Code Online (Sandbox Code Playgroud)
然后确保它有效:
find /usr -name 'MagickCore.pc'
/usr/local/Cellar/imagemagick/6.8.0-10/lib/pkgconfig/MagickCore.pc
/usr/local/lib/pkgconfig/MagickCore.pc
Run Code Online (Sandbox Code Playgroud)
然后再次尝试安装rmagick:
gem install rmagick
Building native extensions. This could take a while...
Successfully installed rmagick-2.13.2
1 gem installed
Installing ri documentation for rmagick-2.13.2...
Installing RDoc documentation for rmagick-2.13.2...
Run Code Online (Sandbox Code Playgroud)
成功!希望这有助于其他任何人仍然遇到这个问题.
| 归档时间: |
|
| 查看次数: |
21766 次 |
| 最近记录: |