在Windows 7 x64上安装gem byebug

时间:2018-03-27 18:01:46

标签: ruby rubygems

我已经看到有其他人在Windows x64系统上安装byebug时出现问题...阅读评论并尝试一些条目我仍然无法安装它。以下是我每次尝试时得到的回复:

D:\Ruby25-x64\bin>gem install byebug
Temporarily enhancing PATH for MSYS/MINGW...
Building native extensions. This could take a while...
ERROR:  Error installing byebug:
ERROR: Failed to build gem native extension.

current directory: D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/byebug-10.0.1/ext/byebug
D:/Ruby25-x64/bin/ruby.exe -r ./siteconf20180327-5764-1i0l197.rb extconf.rb
D:/Ruby25-x64/bin/ruby.exe: No such file or directory -- extconf.rb (LoadError)

extconf failed, exit code 1

Gem files will remain installed in D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/byebug-10.0.1 for inspection.
Results logged to D:/Ruby25-x64/lib/ruby/gems/2.5.0/extensions/x64-mingw32/2.5.0/byebug-10.0.1/gem_make.out

(gem_make.out Log)

current directory: 

D:/Ruby25x64/lib/ruby/gems/2.5.0/gems/byebug10.0.1/ext/byebug
D:/Ruby25-x64/bin/ruby.exe -r ./siteconf20180327-2084hqddnk.rb extconf.rb
D:/Ruby25-x64/bin/ruby.exe: No such file or directory -- extconf.rb 
(LoadError) extconf failed, exit code 1

有没有人可以给我一个明确的解决方案来解决这个问题。感谢

1 个答案:

答案 0 :(得分:0)

如评论中所述,您可以尝试安装为:

gem install --platform=ruby --verbose

要保持更新,请按照此issue on rubygems repo报告您遇到的相同问题