gpt4 book ai didi

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

转载 作者:数据小太阳 更新时间:2023-10-29 07:38:54 24 4
gpt4 key购买 nike

我正在尝试在 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”,但我最终尝试了它,认为它可能有一个解决方法,不幸的是它没有,我仍然有同样的问题。

关于如何解决这个问题有什么想法吗?

最佳答案

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

关于ruby-on-rails - gem install nio4r -v 2.0.0 在 Windows 10 上失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42858630/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com