简体   繁体   English

在Windows 10上,gem install nio4r -v 2.0.0失败

[英]gem install nio4r -v 2.0.0 fails on windows 10

I'm attempting to setup rails on windows 10 but I keep encountering an issue while attempting to install the nio4r gem. 我试图在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

Initially, I attempted to avoid using the "railsinstaller" for windows but I ended up trying it thinking it may have a workaround for this unfortunately it did not and I still have the same issue. 最初,我试图避免使用“railsinstaller”用于Windows,但我最终试图认为它可能有一个解决方法,不幸的是它没有,我仍然有同样的问题。

Any ideas as to how I can fix this? 关于如何解决这个问题的任何想法?

开发人员似乎已经修复了这个问题,因为几周前我最后一次试用这个问题时,一切都已经解决了!

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

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