win7 环境下
http://rubyinstaller.org/ 装好了 ruby,这个包是含 gem 的 于是###
gem install rails
C:\Users\Administrator>gem install rails Fetching: i18n-0.6.9.gem (100%) Successfully installed i18n-0.6.9 Fetching: multi_json-1.8.2.gem (100%) Successfully installed multi_json-1.8.2 Fetching: tzinfo-0.3.38.gem (100%) Successfully installed tzinfo-0.3.38 Fetching: atomic-1.1.14.gem (100%) ERROR: Error installing rails: The 'atomic' native gem requires installed build tools.
Please update your PATH to include build tools or download the DevKit from 'http://rubyinstaller.org/downloads' and follow the instructions at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'
###重新输 gem install rails
ERROR: Error installing rails: The 'atomic' native gem requires installed build tools.
Please update your PATH to include build tools or download the DevKit from 'http://rubyinstaller.org/downloads' and follow the instructions at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'
试过把 gemfile 改成 ruby.taobao.org 还是不行。
gem sources --remove https://rubygems.org/ gem sources -a http://ruby.taobao.org/
之后执行 gem install rails 还是没用!
但重装之前这样的步骤是没有问题,装上 rails 并可以使用了的。现在到底怎么搞的啊,郁闷,来来回回折腾 1 小时了,那个 devkit 装了屁用没有!执行那 devkit 里的 1 个 ruby 文件根本没法执行!怎么办啊!