不会让我在Ruby提示符中安装Gem [英] Won't Let Me Install Gem in Ruby Prompt

查看:95
本文介绍了不会让我在Ruby提示符中安装Gem的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Windows Vista,Ruby v。3.3.5

  C:\> gem install rmagick 

构建原生扩展。这可能需要一段时间...

错误:安装rmagick时出错:
错误:未能构建gem本机扩展。

C:/Ruby19/bin/ruby.exe extconf.rb
检查Ruby版本> = 1.8.5 ...是
驱动器规格无效。
无法获取ImageMagick版本
*** extconf.rb失败***
由于某些原因无法创建Makefile,可能缺少
必需的库和/或标题。查看mkmf.log文件以获取更多
的详细信息。您可能需要配置选项。

提供的配置选项:
--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:/ Ruby19 / bin / ruby​​


Gem文件将保持安装在C:/ Ruby19 / lib / ruby​​ /宝石/ 1.9.1 /宝石/ rmagick-2。
12.2查看。
记录到C的结果:/Ruby19/lib/ruby/gems/1.9.1/gems/rmagick-2.12.2/ext/RMagick/
gem_make.out


http://rmagick.rubyforge.org/install-faq。 html#win


Windows Vista, Ruby v. 3.3.5

C:\>gem install rmagick

Building native extensions.  This could take a while...

ERROR:  Error installing rmagick:
        ERROR: Failed to build gem native extension.

C:/Ruby19/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:/Ruby19/bin/ruby


Gem files will remain installed in C:/Ruby19/lib/ruby/gems/1.9.1/gems/rmagick-2.
12.2 for inspection.
Results logged to C:/Ruby19/lib/ruby/gems/1.9.1/gems/rmagick-2.12.2/ext/RMagick/
gem_make.out

解决方案

On Windows, you should use the rmagick-win32 gem.

http://rmagick.rubyforge.org/install-faq.html#win

这篇关于不会让我在Ruby提示符中安装Gem的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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