无法在Windows 7上安装Rmagick和Imagemagick [英] Can't install Rmagick and Imagemagick on Windows 7

查看:110
本文介绍了无法在Windows 7上安装Rmagick和Imagemagick的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我从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文件
以获取更多详细信息。

据我所知,阅读http://rmagick.rubyforge.org/install-faq.html#os ,rmagick应该与ImageMagick Windows Installer捆绑在一起。答案还提到了rmagick-win32.gem。我从来没有见过它。这就是为什么我会认为rmagick-2.13.1.gem是我需要的,因为它是唯一可用的,考虑到常见问题指的是旧版本的rmagick。所以,我很困惑这个该死的问题是什么。



我也看了一下mkmf.log文件,我发现的唯一的东西是

 检查Ruby版本> = 1.8.5 ...是



这整个事情混淆了我的地狱。所以,任何帮助将非常感激。

解决方案

从以下位置下载zip文件:
https://github.com/rmagick/rmagick/downloads



将其解压缩一个本地目录



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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆