我正在尝试安装ROR并启动第一个应用程序。 我通过RailsInstaller安装它。
ruby --version
ruby 2.3.3p222 (2016-11-21 revision 56859) [i386-mingw32]
我正在使用Windows 10 64位。实际上,ruby版本是32位,因为我通过RailsIntaller安装它(我在他们的网站上没有找到64位软件包)
但是,执行bundle install时,cmd会显示以下内容:
current directory:
C:/dev/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/nio4r-2.1.0/ext/nio4r
C:/dev/RailsInstaller/Ruby2.3.0/bin/ruby.exe -r
./siteconf20170821-16180-18y9lyl.rb extconf.rb --with-cflags=-std=c99
C:/dev/RailsInstaller/Ruby2.3.0/bin/ruby.exe: No such file or directory --
extconf.rb (LoadError)
extconf failed, exit code 1
Gem files will remain installed in
C:/dev/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/nio4r-2.1.0 for
inspection.
Results logged to
C:/dev/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/extensions/x86-mingw32/2.3.0/nio4r-2.1.0/gem_make.out
An error occurred while installing nio4r (2.1.0), and Bundler cannot continue.
Make sure that `gem install nio4r -v '2.1.0'` succeeds before bundling.
日志文件包含以下内容:
current directory: C:/dev/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/nio4r-2.1.0/ext/nio4r C:/dev/RailsInstaller/Ruby2.3.0/bin/ruby.exe -r ./siteconf20170821-16180-18y9lyl.rb extconf.rb --with-cflags=-std=c99 C:/dev/RailsInstaller/Ruby2.3.0/bin/ruby.exe: No such file or directory -- extconf.rb (LoadError) extconf failed, exit code 1
请注意我尝试了多种方法来安装ROR(railsIntaller,rubyInstaller + devKit 32/64位版本......),但上面的错误每次都是相同的。我还检查了环境变量,并确认用户和系统变量指向ruby.exe
提前感谢您的帮助!