【发布时间】:2017-04-16 22:09:30
【问题描述】:
我正在学习 Lynda 的 Ruby on Rails 课程并尝试安装 Ruby on Rails gem。 我正在使用 Windows 7 企业版。 我已经安装了 Ruby 版本 2.3.3p222 和 Ruby DevKit。 我有宝石版本 2.6.11。 我正在尝试使用以下命令安装 RoR:
C:>gem install rails --version 5.0.0
这会返回一条错误消息:
ERROR: Error installing rails:
ERROR: Failed to build gem native extension.
current directory: C:/Ruby23-x64/li/ruby/gems/2.3.0/gems/nio4r-
1.2.1/ext/nio4r
C:/Ruby23-x64/bin/ruby.exe -r ./siteconf20170416-5208-120ozvl.rb extconf.rb
checking for unistd.h...***extconf.rb failed***
Could not create Makefile due to some reason, probably a lack of necessary
libraries and or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
...等等。我在这个网站上发现很多人有类似的问题,但没有一个建议的解决方案对我有用。
【问题讨论】:
标签: ruby-on-rails ruby installation