Following on from my previous posts on setting up Ruby on Rails development environments for previous Mac OSX releases, here I am again showing how I installed Ruby, including MySQL, etc on Yosemite.
1: Install Xcode or the Xcode Command Line Developer Tools
Open Terminal and type git and you should receive this message, click on the Install button and hit agree to confirm. This may take a few minutes to download & install.
Or you can download them from the Apple Developer site (requires login) & run the downloaded file
2: Install Homebrew using the command below. It will ask for your password for sudo privileges.
3: Run brew doctor to check that Homebrew is working OK. You should see a message saying “Your system is ready to brew.”
4: Install RVM by running these commands. The last command should show the latest version of RVM, which in my case, is 1.25.33
5: Install all the Ruby versions you require. This is up to you but I installed the following
6: Set a Ruby version as default
7: Install Bundler & Rails
8: Install Pow
9: Install ImageMagick
10: (Optional) Install MySQL
And that’s it, you now have a Ruby on Rails development environment set up on Yosemite!