简体   繁体   English

安装rmagick gem时出错

[英]Getting error while installing rmagick gem

I am installing gem rmagick in Ubuntu 14.04 OS but I am getting error as, 我在Ubuntu 14.04操作系统中安装gem rmagick,但由于出现错误,

Building native extensions.  This could take a while...
ERROR:  Error installing rmagick:
ERROR: Failed to build gem native extension.

/home/jignesh/.rvm/rubies/ruby-2.1.5/bin/ruby -r ./siteconf20150317-9073-18x8ncb.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/jignesh/.rvm/rubies/ruby-2.1.5/bin/ruby

extconf failed, exit code 1

I have tried so many solutions provided on Stackoverflow as well as on other sites but no one worked for me. 我已经尝试了Stackoverflow以及其他站点上提供的许多解决方案,但是没有人为我工作。

So please any one provide me solution. 因此,请任何人为我提供解决方案。 Thanks in advance. 提前致谢。

您应该安装magickwand软件包来解决此问题:

sudo apt-get install libmagickwand-dev

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM