简体   繁体   English

无法获取ImageMagick版本*** extconf.rb失败***

[英]Unable to get ImageMagick version *** extconf.rb failed ***

i've googled this error a couple of times and got instructions to install rMagick win-32 from their website. 我已经多次搜索该错误,并从其网站获得了安装rMagick win-32的说明。 However the win32 versions looks depecrated and is made for Ruby 1.8.6 as for i have 1.9.3. 但是,win32版本看起来已经废止了,因为我有1.9.3,所以它是为Ruby 1.8.6制作的。

Can someone please help me install this gem? 有人可以帮我安装这个宝石吗? I really can't be arsed to do the imageMagick installing on my PC for this since the code will be moved to other PC's etc. a couple of times in the next few weeks (school assignment, you know how i goes). 为此我真的不敢在计算机上安装imageMagick,因为在接下来的几周中,代码将被转移到其他PC上,等等。(学校作业,你知道我的工作方式)。 And with that it appears that imageMagick CAN be installed along with this gem(Which is by far the best option in my case). 这样看来,可以将imageMagick与该gem一起安装(到目前为止,这是我的最佳选择)。 Nonetheless, i can't figure out this error since i'm a pretty big n00b when it comes to these things. 但是,我无法弄清楚这个错误,因为在这些方面我是一个相当大的n00b。

   C:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb
    checking for Ruby version >= 1.8.5... yes
    Ongeldige stationsspecificatie.
    Unable to get ImageMagick version
    *** 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=C:/RailsInstaller/Ruby1.9.3/bin/ruby


    Gem files will remain installed in C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9
    .1/gems/rmagick-2.13.1 for inspection.
    Results logged to C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rmagick-2
    .13.1/ext/RMagick/gem_make.out
    An error occured while installing rmagick (2.13.1), and Bundler cannot continue.

    Make sure that `gem install rmagick -v '2.13.1'` succeeds before bundling.

You need to install dev packages: 您需要安装开发包:

sudo apt-get install libmagick++-dev

Hope this helps :) 希望这可以帮助 :)

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

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