在Windows 10

时间:2017-03-17 13:19:20

标签: ruby-on-rails ruby

我正在尝试在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

最初,我试图避免在Windows上使用“railsinstaller”,但我最终试图认为它可能有一个解决方法,不幸的是它没有,我仍然有同样的问题。

关于如何解决此问题的任何想法?

1 个答案:

答案 0 :(得分:0)

开发人员似乎已经解决了这个问题,因为我最后一次尝试这一切时,一切都经过了  几个星期前!

相关问题