问题描述
当我从rmagick-2.13.1.gem所在的目录运行 gem install rmagick-2.13.1.gem
时,我得到一个错误,表示它失败建立gem原生扩展,在它下面说:
c:/Ruby192/bin/ruby.exe extconf.rb
检查Ruby版本> = 1.8.5 ...是
无法获取Imagemagick版本
*** extconf.rb失败***
由于某些原因无法创建Makefile,可能缺乏必要的库和/或标题
。查看mkmf.log文件
以获取更多详细信息。
据我所知,阅读,rmagick应该与ImageMagick Windows Installer捆绑在一起。答案还提到了rmagick-win32.gem。我从来没有见过它。这就是为什么我会认为rmagick-2.13.1.gem是我需要的,因为它是唯一可用的,考虑到常见问题指的是旧版本的rmagick。所以,我很困惑这个该死的问题是什么。
我也看了一下mkmf.log文件,我发现的唯一的东西是
检查Ruby版本> = 1.8.5 ...是
这整个事情混淆了我的地狱。所以,任何帮助将非常感激。
从以下位置下载zip文件:
将其解压缩一个本地目录
CD到该目录并输入
gem install rmagick --local
完成。
如果您遇到错误,您可能需要阅读Zipfile中的Readme.html文件
when I run gem install rmagick-2.13.1.gem
from the directory in which rmagick-2.13.1.gem is I get an Error saying that it failed to build gem native extension, below which it says
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.
From what I know reading the answers to FAQs on http://rmagick.rubyforge.org/install-faq.html#os, rmagick should come bundled with ImageMagick Windows Installer. The answers also mention rmagick-win32.gem. I haven't seen it anywhere. That's why I'll assume that rmagick-2.13.1.gem is what I need since it's the only one availaible, considering that FAQs refer to the older version of rmagick. So, I'm really confused about what the damned problem is.
I also took a look at mkmf.log file and the only thing that I've found there is
checking for Ruby version >= 1.8.5 ... yes
This whole thing confuses the hell out of me. So, any help would be hugely appreciated. Thanks a lot in advance.
Download zip file from:https://github.com/rmagick/rmagick/downloads
Unzip it in a local directory
CD to that directory and type
gem install rmagick --local
Done.
If you get errors you might want to read the Readme.html file in the Zipfile
这篇关于无法在Windows 7上安装Rmagick和Imagemagick的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!