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

时间:2012-10-13 07:27:24

标签: ruby-on-rails imagemagick rmagick

我已经搜索了几次这个错误,并获得了从他们的网站安装rMagick win-32的说明。然而,win32版本看起来很糟糕,并且是为Ruby 1.8.6制作的,因为我有1.9.3。

有人可以帮我安装这个宝石吗?我真的无法在我的电脑上安装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.

2 个答案:

答案 0 :(得分:0)

答案 1 :(得分:0)

您需要安装开发包:

sudo apt-get install libmagick++-dev

希望这会有所帮助:)