Steps to Build Ruby on Rails Development Environment on Mac [Ruby 1.8.7]
I’ll introduce the steps to build a Ruby on Rails development environment on macOS with Ruby 1.8.7.
$ ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
According to the official site, Ruby 1.8.7 and Ruby 1.9.2 are recommended, so it seems we don’t need to update.
Mac comes with RubyGems by default.
sudo gem update --system
sudo gem install rails --include-dependencies
brew install sqlite
Also, install the sqlite driver so Rails can access SQLite.
gem install sqlite3
That’s all from the Gemba.