无法安装 rmagick、ruby 1.9、rails 3、windows
我已经用谷歌搜索了一段时间,但找不到任何有用的东西。
基本上,当我将 gem 'rmagick' 放入 gemfile 并运行捆绑安装时,我收到以下错误消息:
Installing rmagick (2.13.1) with native extensions C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems /installer.rb:551:in `构建中的块中的救援 d_extensions':错误:无法构建 gem 本机扩展。 (Gem::Installer::ExtensionBuildError)
C:/Ruby192/bin/ruby.exe extconf.rb 检查 Ruby 版本 >= 1.8.5... 是 驱动器规格无效。 无法获取 ImageMagick 版本 * extconf.rb 失败 * 由于某种原因无法创建 Makefile,可能缺少 必要的库和/或标头。检查 mkmf.log 文件了解更多信息 细节。您可能需要配置选项。
我访问 RMagick 站点并安装了 Windows 二进制 gem。但它仍然不起作用。
我应该怎么办?
编辑:我需要 rmagick 来实现 simple_captcha
I've been googling for a while but couldn't find anything that works.
Basically, when I put gem 'rmagick' in my gemfile and run bundle install, I get the following error message:
Installing rmagick (2.13.1) with native extensions C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:551:in `rescue in block in buil
d_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
C:/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.
I went to the RMagick site and installed the windows binary gem. but it still doesn't work.
What should I do?
Edit: I need rmagick for simple_captcha
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
好吧终于开始工作了。
这就是最终帮助我做对的事情。
http: //www.waydotnet.com/blog/2010/02/rmagick-on-ruby-1-9-1-i386-mingw32-work-d/
有趣的事情是的,由于其他问题,我最终放弃了 simple_captcha。
使用第三方插件比我想象的要麻烦得多......
Alright finally got it to work.
This is what ended up helping me get it right.
http://www.waydotnet.com/blog/2010/02/rmagick-on-ruby-1-9-1-i386-mingw32-work-d/
Funny thing is, I ended up giving up simple_captcha because of other problems.
Using third party plugins involves much bigger headaches than I thought...
您需要先安装 ImageMagick。
You need ImageMagick installed first.