ruby - 找不到魔杖/MagickWand.h

标签 ruby ubuntu imagemagick rmagick

我已经将我的系统更新到 Ubuntu 15.04,但现在无法安装 Rmagick...

它给我以下错误:

$ gem install rmagick -v '2.13.2'
Building native extensions.  This could take a while...
ERROR:  Error installing rmagick:
    ERROR: Failed to build gem native extension.

    /home/maria/.rvm/rubies/ruby-2.1.1/bin/ruby -r ./siteconf20150428-16155-3f5duq.rb extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for gcc... 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... no

Can't install RMagick 2.13.2. Can't find MagickWand.h.
*** 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.

我安装了所有需要的包(imagemagick libmagickwand-dev 等,我已经尝试了其他问题中描述的所有包)

有人遇到同样的问题吗?有什么线索吗?

在更新到 15.04 之前一切正常

编辑 我设法让它工作清除 imagemagick 并从源安装 http://www.imagemagick.org/script/install-source.php?ImageMagick=9s6tlikqbn5eb0u0spg5o38sa4#unix

现在给我这个错误:RMagick 的安装是使用 ImageMagick 6.9.1 配置的,但正在使用 ImageMagick 6.8.9-9。

最佳答案

我有同样的问题,我修复了更新 rmagick。我所做的是:

sudo apt-get install libmagickwand-dev imagemagick
bundle update rmagick

现在 bundle 可以正常工作了。

关于ruby - 找不到魔杖/MagickWand.h,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29914304/

相关文章:

ruby - 父类(super class)不匹配

ruby - ENV 在 Ruby 中返回什么对象?

ubuntu - SASS 监视整个根

python - 从终端返回输出

php - 将 PDF 转换为 PNG Imagemagick 时出错 : unable to create temporary file

php - 如何使用 ImageMagick 对图像的一部分进行像素化?

Ruby 中的 Python getattr

ruby-on-rails - ActiveRecord 加入 : integer columns converted to strings

php - 需要帮助为 UBUNTU 14.0 的 couchbase server 4.0.0 安装 C SDK 和 PHP SDK

python - 使用 Wand 读取和写入上传的文件