又来求组了。 rails 应该是安装成功了! rails new myapp 之后 想先启动服务器看一下 rails server 没成功,错误信息:
D:>cd myapp
D:\myapp>rails s
[31mCould not find gem 'rails (= 4.0.2) x86-mingw32' in the gems available on
his machine.[0m
[33mRun bundle install
to install missing gems.[0m
D:\myapp>
是个什么没安装吗?谢谢~
D:\myapp>bundle install Fetching gem metadata from https://rubygems.org/.......... Fetching gem metadata from https://rubygems.org/.. Resolving dependencies... Using rake (10.1.1) Using i18n (0.6.9) Using minitest (4.7.5) Installing multi_json (1.8.4) Installing atomic (1.1.15) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension .
"C:/Program Files/RailsInstaller/Ruby1.9.3/bin/ruby.exe" extconf.rb C:/Program Files/RailsInstaller/Ruby1.9.3/bin/ruby.exe: invalid switch in RUBYOP T: -F (RuntimeError)
Gem files will remain installed in C:/Program Files/RailsInstaller/Ruby1.9.3/lib /ruby/gems/1.9.1/gems/atomic-1.1.15 for inspection. Results logged to C:/Program Files/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/ gems/atomic-1.1.15/ext/gem_make.out An error occurred while installing atomic (1.1.15), and Bundler cannot continue.
Make sure that gem install atomic -v '1.1.15'
succeeds before bundling.
D:\myapp>
请根据这里提示安装关于 devkit 的方法 试试 http://learnwebtutorials.com/step-by-step-tutorial-on-installing-ruby-on-rails-4-on-windows-8