简体   繁体   English

在Windows 7 x64上安装gem byebug

[英]Installing gem byebug on Windows 7 x64

I've seen there have been others who have had a problem installing byebug on a Windows x64 system... Reading over the comments and trying a number of entries I am still not able to get it to install. 我已经看到其他人在Windows x64系统上安装byebug时遇到了问题...阅读注释并尝试许多条目,但我仍然无法安装它。 Here is the response I get each time I try: 这是每次尝试时得到的响应:

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

Is there anyone out there who can give me a clear solution to this problem. 有没有人可以给我明确解决此问题的方法。 Thanks 谢谢

As confirmed in the comment, you can try to install as: 如评论中所确认,您可以尝试以以下方式安装:

gem install --platform=ruby --verbose

To stay updated, follow this issue on rubygems repo which is reporting the same problem you experienced 要保持更新,请在rubygems repo上关注此问题 ,该问题报告您遇到的相同问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM