加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ruby-on-rails – 在Windows 10上,gem install nio4r -v 2.0.0失

发布时间:2020-12-17 01:57:15 所属栏目:百科 来源:网络整理
导读:我试图在 Windows 10上设置rails但是在尝试安装nio4r gem时我遇到了一个问题. C:gem install nio4r -v 2.0.0Temporarily enhancing PATH to include DevKit...Building native extensions. This could take a while...ERROR: Error installing nio4r:ERROR:
我试图在 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)GnuWin32bin "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)GnuWin32bin "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,但我最终试图认为它可能有一个解决方法,不幸的是它没有,我仍然有同样的问题.

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

解决方法

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读