rmagick安装问题

发布于 2024-10-18 21:59:40 字数 768 浏览 8 评论 0原文

我正在尝试在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

酒儿 2024-10-25 21:59:40

我遇到了同样的问题,安装 libmagickwand 为我解决了问题......

sudo apt-get install libmagickwand-dev

I was having the same problems, installing libmagickwand did the trick for me...

sudo apt-get install libmagickwand-dev
醉南桥 2024-10-25 21:59:40

拥有 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.

爱人如己 2024-10-25 21:59:40

这对我有用:

  1. 将我自己的 ImageMagick 安装到我的主文件夹中:
    http://wiki.dreamhost.com/Image_Magick#Compiling_ImageMagick_on_your_DreamHost_account

  2. 导出相关路径:
    http://wiki.dreamhost.com/RMagick

然后 $ 捆绑安装

This works for me:

  1. Install my own ImageMagick to my home folder:
    http://wiki.dreamhost.com/Image_Magick#Compiling_ImageMagick_on_your_DreamHost_account

  2. Export relevant path:
    http://wiki.dreamhost.com/RMagick

Then $ bundle install

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文