ruby-on-rails 无法安装导轨

wmvff8tz  于 2023-02-01  发布在  Ruby
关注(0)|答案(1)|浏览(186)

我正在Windows上安装Rails。当我运行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: C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/nio4r-2.5.2/ext/nio4r
C:/Ruby26-x64/bin/ruby.exe -I C:/Ruby26-x64/lib/ruby/2.6.0 -r ./siteconf20200417-11800-rf5t47.rb 
extconf.rb

current directory: C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/nio4r-2.5.2/ext/nio4r
make "DESTDIR=" clean
current directory: C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/nio4r-2.5.2/ext/nio4r
make "DESTDIR="
make failedNo such file or directory - make "DESTDIR="

Gem files will remain installed in C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/nio4r-2.5.2 for inspection.
Results logged to C:/Ruby26-x64/lib/ruby/gems/2.6.0/extensions/x64-mingw32/2.6.0/nio4r- 
2.5.2/gem_make.out

我不知道这个错误,怎么解决?

4ioopgfo

4ioopgfo1#

老问题了,但可能仍然与通过搜索到达的人相关。我从https://rubyinstaller.org/downloads/安装了最新的Ruby + devkit,它工作了(Windows 10)

相关问题