rmagick安装问题
我正在尝试在 DreamHost 上部署我的 Rails 3 应用程序。 当我执行“捆绑安装”时,rmagick 会导致错误。
configure: error: Can't install RMagick. Can't find Magick-config or GraphicsMagick-config program.
RMagick configuration failed with status 1.
我检查了 ImageMagick 版本。
$ convert --version
Version: ImageMagick 6.3.7 11/16/10 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2008 ImageMagick Studio LLC
我检查了rmagick版本
$ ls -d /usr/lib/ruby/gems/1.8/gems/rmagick*
/usr/lib/ruby/gems/1.8/gems/rmagick-1.15.14
由于我不关心rmagick的版本,所以我在Gemfile中将rmagick版本更改为1.15.14。 但它仍然给出相同的错误。
我该如何解决这个问题?我是否有可能在 Gemfile 中省略 rmagick 并在某处添加 [require 'RMagick'] ?如果是这样,我应该将其添加到哪个文件中?
谢谢。
山姆
I am trying to deploy my rails 3 app on DreamHost.
When I do "bundle install", rmagick causes an error.
configure: error: Can't install RMagick. Can't find Magick-config or GraphicsMagick-config program.
RMagick configuration failed with status 1.
I checked ImageMagick version.
$ convert --version
Version: ImageMagick 6.3.7 11/16/10 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2008 ImageMagick Studio LLC
And I checked rmagick version
$ ls -d /usr/lib/ruby/gems/1.8/gems/rmagick*
/usr/lib/ruby/gems/1.8/gems/rmagick-1.15.14
As I don't care the version of rmagick, I changed the rmagick version to 1.15.14 in Gemfile.
But still it gives the same error.
How do I fix this problem? Is it possible that I omit rmagick in Gemfile and add [require 'RMagick'] somewhere? If so, which file do I add it to?
Thanks.
Sam
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我遇到了同样的问题,安装 libmagickwand 为我解决了问题......
I was having the same problems, installing libmagickwand did the trick for me...
拥有 ImageMagick 只是解决方案的一半。您还需要开发标头。通常这被称为 ImageMagick-devel 或类似的名称,具体取决于您的发行版。
安装开发版本后,您将获得
Magick-config
程序。Having ImageMagick is only half of the solution. You also need the development headers. Often this is called
ImageMagick-devel
or something along those lines and depends on your distribution.Once you have your development version installed you will get the
Magick-config
program.这对我有用:
将我自己的 ImageMagick 安装到我的主文件夹中:
http://wiki.dreamhost.com/Image_Magick#Compiling_ImageMagick_on_your_DreamHost_account
导出相关路径:
http://wiki.dreamhost.com/RMagick
然后 $ 捆绑安装
This works for me:
Install my own ImageMagick to my home folder:
http://wiki.dreamhost.com/Image_Magick#Compiling_ImageMagick_on_your_DreamHost_account
Export relevant path:
http://wiki.dreamhost.com/RMagick
Then $ bundle install