![](/img/trans.png)
[英]gem install rails fails on nio4r windows7 ruby 2.3
[英]gem install nio4r -v 2.0.0 fails on windows 10
我試圖在Windows 10上設置rails但是在嘗試安裝nio4r gem時我遇到了一個問題。
C:\>gem install nio4r -v 2.0.0
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing nio4r:
ERROR: Failed to build gem native extension.
current directory:
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/nio4r-2.0.0/ext/nio4r
C:/RailsInstaller/Ruby2.3.0/bin/ruby.exe -r ./siteconf20170317-11700-9smes9.rb extconf.rb
checking for unistd.h... yes
checking for sys/select.h... no
checking for poll.h... no
checking for sys/epoll.h... no
checking for sys/event.h... no
checking for port.h... no
checking for sys/resource.h... no
creating Makefile
To see why this extension failed to compile, please check the mkmf.log which can be found here:
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/extensions/x86-mingw32/2.3.0/nio4r-2.0.0/mkmf.log
current directory:
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/nio4r-2.0.0/ext/nio4r
C:\Program Files (x86)\GnuWin32\bin\ "DESTDIR=" clean
'C:\Program' is not recognized as an internal or external command, operable program or batch file.
current directory:
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/nio4r-2.0.0/ext/nio4r
C:\Program Files (x86)\GnuWin32\bin\ "DESTDIR="
'C:\Program' 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:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/nio4r-2.0.0 for inspection.
Results logged to
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/extensions/x86-mingw32/2.3.0/nio4r-2.0.0/gem_make.out
最初,我試圖避免使用“railsinstaller”用於Windows,但我最終試圖認為它可能有一個解決方法,不幸的是它沒有,我仍然有同樣的問題。
關於如何解決這個問題的任何想法?
開發人員似乎已經修復了這個問題,因為幾周前我最后一次試用這個問題時,一切都已經解決了!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.