Ukr*_*ain 9 ruby rubygems ruby-on-rails rmagick imagemagick
当我gem install rmagick-2.13.1.gem从rmagick-2.13.1.gem所在的目录运行时,我得到一个错误,说它无法构建gem原生扩展,在它下面说
c:/Ruby192/bin/ruby.exe extconf.rb
checking for Ruby version >= 1.8.5 ... yes
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.
Run Code Online (Sandbox Code Playgroud)
据我所知,在http://rmagick.rubyforge.org/install-faq.html#os上阅读常见问题解答的答案时,rmagick应该与ImageMagick Windows Installer捆绑在一起.答案还提到了rmagick-win32.gem.我没有在任何地方见过它.这就是为什么我会假设rmagick-2.13.1.gem是我需要的,因为它是唯一可用的,考虑到常见问题解答引用旧版本的rmagick.所以,我真的很困惑这该死的问题是什么.
我还看了一下mkmf.log文件,我发现的唯一的东西就是
checking for Ruby version >= 1.8.5 ... yes
Run Code Online (Sandbox Code Playgroud)
整件事让我感到困惑.所以,任何帮助都将非常感激.非常感谢提前.
小智 4
从以下位置下载 zip 文件: https: //github.com/rmagick/rmagick/downloads
解压到本地目录
CD 到该目录并输入
gem install rmagick --local
Run Code Online (Sandbox Code Playgroud)
完毕。
如果出现错误,您可能需要阅读 Zipfile 中的 Readme.html 文件