首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法获取ImageMagick版本* extconf.rb失败*

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

Stack Overflow用户
提问于 2012-10-13 15:27:24
回答 2查看 1.8K关注 0票数 2

我已经用谷歌搜索了几次这个错误,并从他们的网站上获得了安装rMagick win-32的说明。然而,win32版本看起来有点过时,是为Ruby1.8.6设计的,而我的版本是1.9.3。

有没有人能帮我安装这个宝石?我真的不能在我的电脑上安装imageMagick,因为在接下来的几周里,代码会被移动到其他电脑上几次(学校作业,你知道我怎么做的)。这样看来,imageMagick可以与这个gem一起安装(在我的例子中,这是最好的选择)。尽管如此,我还是找不出这个错误,因为当涉及到这些事情时,我是一个相当大的n00b。

代码语言:javascript
复制
   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.
EN

回答 2

Stack Overflow用户

发布于 2014-04-21 22:45:27

在这里,我遇到了同样的问题。经过搜索,我在这里找到了解决方案

http://www.waydotnet.com/2010/02/12/rmagick-on-ruby-1-9-1-i386-mingw32-work-d/

http://phosphor-escence.blogspot.in/2010/12/if-you-fail-install-rmagick-on-mingw.html

票数 0
EN

Stack Overflow用户

发布于 2017-11-23 02:39:02

您需要安装dev包:

代码语言:javascript
复制
sudo apt-get install libmagick++-dev

希望这能有所帮助:)

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/12870971

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档