RMagick 不工作
我将不胜感激任何帮助 - 我确信这是一个简单的错误。
我的应用程序的位置是 C:\sanj\rubyjobs
。我已在其默认位置成功安装 ImageMagick:C:\Program Files (x86)\ImageMagick
。
我还通过在 C:\sanj\rubyjobs\vendor\RMagick Extract
中运行 gem install rmagick --local
安装了 rmagick gem。
运行 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-bit, Ruby 1.9.2, Rails 3, Heroku
EDIT 当我从 ruby 命令提示符运行 identify -version
时,我得到: 版本:ImageMagick 6.5.6-8 2009-10-03 Q8 OpenMP http://www.imagemagick.org 版权所有:Copyright (C) 1999-2009 ImageMagick Studio LLC
如果安装了ImageMagick并且提示找到它,为什么会说无法获取版本?
I'd appreciate any help with this - I'm sure it's a simple mistake.
The location of my app is C:\sanj\rubyjobs
. I have installed ImageMagick successfully in its default location: C:\Program Files (x86)\ImageMagick
.
I have also installed rmagick the gem by running gem install rmagick --local
in C:\sanj\rubyjobs\vendor\RMagick Extract
.
Upon running bundle install
, I get the following error:
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
Setup: Windows Vista 64-bit, Ruby 1.9.2, Rails 3, Heroku
EDIT
When I run identify -version
from ruby command prompt, I get:
Version: ImageMagick 6.5.6-8 2009-10-03 Q8 OpenMP http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC
If ImageMagick is installed and the prompt is finding it, why is it saying it can't get the version??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我的答案是
http:// /phosphor-escent.blogspot.com/2010/12/if-you-fail-install-rmagick-on-mingw.html
但是,不幸的是,RMagick 没有继续维护......
My answer is there
http://phosphor-escence.blogspot.com/2010/12/if-you-fail-install-rmagick-on-mingw.html
But, unfortunatelly, RMagick is not continued to maintain...
查看 RMagick 常见问题解答。根据他们的说法,您不应该安装官方的 RMagick gem,而应该使用与 ImageMagick 安装程序捆绑在一起的 gem。
Check out the RMagick FAQ. According to them, you shouldn't be installing the official RMagick gem, but rather using the gem that is bundled with the ImageMagick installer.
以下是如何让 RMagic 工作! https://github.com/rmagick/rmagick/wiki
这不是一个简单的错误。它设计得很糟糕。像需要 ImageMagick 在你的道路前面这样的事情是很神秘的!但它不适用于最新版本的 ImageMagick 6.8。
Here's how to get RMagic working! https://github.com/rmagick/rmagick/wiki
It's not a simple mistake. It's poorly designed. Things like needing ImageMagick at the front of your path are just arcane! It doesn't work with the latest version of ImageMagick 6.8 though.
刚刚发布的 RMagick 2.13.2 版本应该可以与 ImageMagick 6.8 配合使用,并且还修复了 ruby 1.9.3。请参阅https://github.com/rmagick/rmagick。
The just released 2.13.2 version of RMagick should work with ImageMagick 6.8, and also has fixes for ruby 1.9.3. See https://github.com/rmagick/rmagick.