2012-10-13 98 views
2

我已经GOOGLE了这个错误几次,并得到了从他们的网站安装rMagick win-32的说明。然而,win32版本看起来有些偏差,并且是为Ruby 1.8.6而制作的,因为我的版本是1.9.3。无法获取ImageMagick版本*** extconf.rb失败***

有人可以帮我安装这颗宝石吗?我真的不能在我的个人电脑上安装imageMagick,因为在接下来的几周里(代码分配,你知道我会怎么做)代码会被移到其他PC等等。与此同时,它似乎imageMagick可以随着这个宝石(这是迄今为止我的情况下最好的选择)安装。尽管如此,我无法弄清楚这个错误,因为当它涉及到这些事情时我是一个相当大的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. 

回答

1

你需要安装开发包:

sudo apt-get install libmagick++-dev 

希望这有助于:)

相关问题