ruby 2.2.6p396 (2016-11-15 revision 56800) [x64-mingw32]
C:\Users\myname>gem update
Updating installed gems
Updating bigdecimal
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing bigdecimal:
ERROR: Failed to build gem native extension.
C:/Ruby22-x64/bin/ruby.exe -r ./siteconf20161222-9476-ivo88e.rb extconf.rb
检查stdlib.h中的labs()... * extconf.rb失败* 由于某些原因无法创建Makefile,可能缺少必要的 库和/或标题。检查mkmf.log文件以获取更多详细信息。你可以 需要配置选项。
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:/Ruby22-x64/bin/$(RUBY_BASE_NAME)
C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:541:in `try_link0'
from C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:556:in `try_link'
from C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:735:in `try_func'
from C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:1020:in `block in have_func'
from C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:911:in `block in checking_for'
from C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:351:in `block (2 levels) in postpone'
from C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:321:in `open'
from C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:351:in `block in postpone'
from C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:321:in `open'
from C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:347:in `postpone'
from C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:910:in `checking_for'
from C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:1019:in `have_func'
from extconf.rb:6:in `<main>'
extconf failed, exit code 1
我正在尝试更新ruby上的libary,但它告诉我我需要先安装开发工具。
我已下载开发工具包并按照以下步骤操作:
We need to specify a folder where we’re going to permanently install the
DevKit. I recommend installing it in the root of your hard drive, at
“C:\RubyDevKit“. (Don’t use spaces in the directory name.)
现在我们需要为Ruby提供DevKit工具。
Back in your command prompt, change to the the DevKit directory.
(“Directory” is another name for a folder.) Type “cd C:\RubyDevKit“, or
whatever other directory name you installed it in.
Next we need to run a Ruby script to initialize the DevKit setup. Type “ruby
dk.rb init“.
Now we’ll tell that same script to add the DevKit to our Ruby installation.
Type “ruby dk.rb install“.
但是当我进入cmd ruby和gem update时,我收到了顶部的错误:(
任何人都知道我哪里出错了?我正在跟随一个lynda课程走向成为一个完整的堆栈Web开发人员,这现在是一个障碍!
谢谢你们