代码之家  ›  专栏  ›  技术社区  ›  sscirrus

RMagick不工作

  •  2
  • sscirrus  · 技术社区  · 15 年前

    我很感激你的帮助-我相信这是个简单的错误。

    C:\sanj\rubyjobs . 我已在默认位置成功安装ImageMagick: C:\Program Files (x86)\ImageMagick .

    我还通过运行 gem install rmagick --local 在里面 C:\sanj\rubyjobs\vendor\RMagick Extract

    跑步时 bundle install ,我得到以下错误:

    C:/Sanj/Ruby192/bin/ruby.exe extconf.rb  
    checking for Ruby version >= 1.8.5... yes  
    Invalid drive specification.  
    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:/Sanj/Ruby192/bin/ruby
    
    Gem files will remain installed in C:/Sanj/Ruby192/lib/ruby/gems/1.9.1/gems/rmagick-2.13.1 for inspection.  
    Results logged to C:/Sanj/Ruby192/lib/ruby/gems/1.9.1/gems/rmagick-2.13.1/ext/RM
    agick/gem_make.out
    

    安装程序:Windows Vista 64位、Ruby 1.9.2、Rails 3、Heroku

    当我跑的时候 identify -version 从ruby命令提示符,我得到: http://www.imagemagick.org 版权所有:版权所有(C)1999-2009 ImageMagick Studio LLC

    如果安装了ImageMagick并且提示找到了它,为什么它说它无法获得版本??

    4 回复  |  直到 13 年前
        1
  •  0
  •   Youhei Kondou    15 年前

    我的答案在那里

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

    但不幸的是,马吉克并没有继续坚持。。。

        2
  •  0
  •   jerhinesmith    15 年前

    RMagick FAQ . 根据他们的说法,您不应该安装正式的RMagick gem,而应该使用ImageMagick安装程序附带的gem。

        3
  •  0
  •   Chloe    13 年前

    https://github.com/rmagick/rmagick/wiki

    这不是一个简单的错误。它的设计很差。像需要在你的路径前面的ImageMagick之类的东西只是神秘的!不过,它不适用于最新版本的ImageMagick6.8。

        4
  •  0
  •   sockmonk    13 年前

    刚刚发布的2.13.2版本的RMagick应该可以与ImageMagick 6.8一起使用,并且还可以修复ruby 1.9.3。见 https://github.com/rmagick/rmagick