Ruby ImageMagick/找不到魔杖/MagickWand.h/Ubuntu 15.04

Ruby ImageMagick/找不到魔杖/MagickWand.h/Ubuntu 15.04,ruby,ubuntu,imagemagick,rmagick,Ruby,Ubuntu,Imagemagick,Rmagick,我试图安装RMagick 2.13.4几个小时,但无法完成 我发现一个帖子有相同的问题,但没有解决: 这是我的控制台日志: Installing rmagick 2.13.4 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /home/gfioriello/.rvm/rubies/ruby-2.0.0-p247/bin/ruby -r ./sitecon

我试图安装RMagick 2.13.4几个小时,但无法完成

我发现一个帖子有相同的问题,但没有解决:

这是我的控制台日志:

Installing rmagick 2.13.4 with native extensions

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    /home/gfioriello/.rvm/rubies/ruby-2.0.0-p247/bin/ruby -r ./siteconf20151013-8735-126suhh.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 stdint.h... yes
checking for sys/types.h... yes
checking for wand/MagickWand.h... no

Can't install RMagick 2.13.4. 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.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/home/gfioriello/.rvm/rubies/ruby-2.0.0-p247/bin/ruby

extconf failed, exit code 1

Gem files will remain installed in /home/gfioriello/.rvm/gems/ruby-2.0.0-p247@self_service/gems/rmagick-2.13.4 for inspection.
Results logged to /home/gfioriello/.rvm/gems/ruby-2.0.0-p247@self_service/extensions/x86_64-linux/2.0.0/rmagick-2.13.4/gem_make.out
An error occurred while installing rmagick (2.13.4), and Bundler cannot continue.
Make sure that `gem install rmagick -v '2.13.4'` succeeds before bundling.
我有Ubuntu 15.04

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

这是我的ImageMagick版本

gfioriello@dvt-005:~$ identify -version
Version: ImageMagick 6.8.9-9 Q16 x86_64 2015-01-06 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC Modules OpenMP
Delegates: bzlib djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png tiff wmf x xml zlib
如果有人知道该做什么,他会很感激的

首先检查rmagick版本支持哪个imagemagick,并通过此链接根据它下载 第二,下载后,将其解压并转到文件夹并打开终端,然后在终端中键入命令,一步一步a./configure b make c sudo make install,对于卸载相同版本的sudo make uninstall,请按照此链接获取更多信息d sudo ldconfig/usr/local/lib e sudo apt get安装imagemagick libmagickwand dev f sudo apt get install libmagickcore dev g sudo apt get install graphicsmagick libmagick dev compat 完成所有操作后,键入convert-version检查版本和正确安装。 输出类似于版本:ImageMagick 6.9.7-4 Q16 x86_64 20170114 版权所有:©1999-2017 ImageMagick Studio LLC 许可证: 特点:密码DPC模块OpenMP 学员内置:bzlib djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png tiff wmf x xml zlib。 如果您安装了错误的ImageMagick版本,则转到第二点并逐步卸载它a./configure b make csudo make uninstall。安装Imagemagick的过程与安装Imagemagick的过程相同,但您必须使用sudo make uninstall。
你试过从ubuntu存储库切换到ruby吗?sudo apt get install libmagickwand-6-headers libmagickwand dev libmagickwand-6.q16-dev是的,已经全部安装了。。我尝试这样做:gem安装rmagick-v'2.13.4',但得到的结果是:无法安装rmagick 2.13.4。找不到MagickWand.h.**extconf.rb失败***我遇到了同样的问题:我列出了所有的包,但仍然得到与您完全相同的错误。你修过吗?如果是的话,你还记得你做了什么吗?谢谢