ruby on rails 环境搭建步骤
1.安装ruby ruby的下载页面一个版本有3样要下载的,帮助文件和安装文件、还有一个mingw。 安装时抛出make出错信息 就是由于没有安装mingw引起的 到下载页 http://rubyforge.org/frs/?group_id=167 下载相应版本的mingw32工具解压覆盖到安装目录中,要是怕出问题先对目录做备份。 2.安装DevKit 安装好Ruby后直接执行gem install rails命令安装rails会抛出下面的错误: The 'json' native gem requires installed build tools. ERROR: Error installing rails: The'json'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' 这是由于Devkit未安装引起的,根据提示的网址下载安装文