RMagick RVM 安装失败
当我在 rvm 中安装 rmagick 时,我不断收到此错误。
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.
这是我当前的设置:
Snow Leopard 10.6.7
XCode 3.2.6
RVM 1.6.1
Ruby Over RVM (ree1.8.7)
Homebrew 0.8
ImageMagick 6.6.9-4 c/o Homebrew
使用 Homebrew 安装 imagemagick 后,我能够使用系统 ruby 安装 rmagick
rvm system
sudo gem install rmagick
有什么想法吗?
I keep getting this error when I'm installing rmagick inside rvm.
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.
Here's my current setup:
Snow Leopard 10.6.7
XCode 3.2.6
RVM 1.6.1
Ruby Over RVM (ree1.8.7)
Homebrew 0.8
ImageMagick 6.6.9-4 c/o Homebrew
After installing imagemagick with Homebrew, I was able to install rmagick using the system ruby
rvm system
sudo gem install rmagick
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为 homebrew 的 imagemagick 包在一小段时间内出现了问题。我刚刚在我的系统上重新安装了 rmagick(也是带有 RVM 的 10.6.7)。首先我重新安装了 imagick:
然后
最后我
编译没有问题。我不明白为什么它会给你带来问题,但在使用 rvm 时不需要使用 sudo ,除非你以 root 身份安装 RVM 。
I think that there was a problem with the imagemagick package from homebrew for a small period of time. I just walked through re-installing rmagick on my system (also 10.6.7 with RVM). First I re-installed imagick:
and then
Finally I did
Which compiled with no problems. I can't see why it would cause you problems but you don't need to use sudo when use rvm unless you installed RVM as root.
RMagick 希望 Homebrew 提供某些不会退出的符号链接,导致很多问题 。
您可以运行 this gist 来创建 RMagick 工作所需的特定于您的 ImageMagick 安装的符号链接。
RMagick expects for Homebrew to provide certain symlinks which don't exit, causing a whole lotta problems.
You can run this gist to create the symlinks specific to your ImageMagick installation that are needed for RMagick to work.