我刚刚在windows 10 ruby
上安装了gem
和x64,我检查了它们是否都安装了。当我试图安装rails时,过了一段时间它就失败了。
有关已使用的命令,请参阅下面的链接
El Administrator: Windows PowerShell
PS C:\WINDOWS\system32> ruby -v
ruby 2.4.3p205 (2017-12-14 revision 61247) (x64-mingw32]
PS C:\WINDOWS\system32> gem --version 2.6.14 PS
C:\WINDOWS\system32> gem install rails
Temporarily enhancing PATH for MSYS/MINGW...
Building native extensions. This could take a while...
ERROR: Error installing rails:
ERROR: Failed to build gem native extension.
current directory: CuRuby24-x64/lib/ruby/gems/2.4.0/gems/nio4r-2.2.0/ext/nio4r
C:/Ruby24-x64/bin/ruby.exe -r asiteconf20180211-14528-1um1rd2.rb extconf.rb
current directory: C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/nio4r-2.2.0/ext/nio4r
make "DESTDIR=" clean
'make' is not recognized as an internal or external command,
operable program or batch file.
current directory: C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/nio4r-2.2.0/ext/nio4r
make "DESTDIR="
'make' is not recognized as an internal or external command,
operable program or batch file.
make failed, exit code 1
Gem files will remain installed in C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/nio4r-2.2.0 for inspection.
Results logged to C:/Ruby24-x64/lib/ruby/gems/2.4.0/extensions/x64-mingw32/2.4.0/nio4r-2.2.0/gem_make.out
PS C:\WINDOWS\system32>
发布于 2018-02-13 11:02:50
发布于 2021-07-27 11:45:29
https://stackoverflow.com/questions/48732050
复制相似问题