
You can install PostgreSQL server and client from Homebrew: brew install postgresql When you're finished, you can skip to the Final Steps.

Follow the instructions and run them: # To have launchd start mysql at login:īy default the mysql user is root with no password. Once this command is finished, it gives you a couple commands to run. You can install MySQL server and client from Homebrew: brew install mysql If you're coming from PHP, you may already be familiar with MySQL. If you're new to Ruby on Rails or databases in general, I strongly recommend setting up PostgreSQL. There is a lot of documentation on both, so you can just pick one that seems like you'll be more comfortable with. You'll probably want something more robust like MySQL or PostgreSQL. Chances are you won't want to use it because it's stored as a simple file on disk. Rails ships with sqlite3 as the default database. This might be a dupe of: How to update Ruby to 1.9.We're going to install sqlite3 from homebrew because we can't use the built-in version with macOS Sierra without running into some troubles. Visit: How do I change my Ruby version using RVM? for the solution. Note on erros: if you get the error " RVM is not a function" while trying this command, Note on Compiling Ruby: In my case I also had to install Homebrew to get the gems I needed ( RSpec) which in turn forces you to install Xcode (if you haven't already) AND/OR install the GCC package from: to avoid errors running " make".

( installs the current stable release - at time of writing 1.9.3-p362 - pls update this wiki when new versions released ) Or if you just want the latest (current) version: rvm install current & rvm use current ( shows you the latest available versions of Ruby ) rvm install ruby-1.9.3-p362įor a specific version, followed by rvm use ruby-1.9.3-p362 ( you will need to trust the RVM Dev Team that the command is not malicious - if you're a paranoid penguin like me, you can always go read the source: ) rvm list known

To get started, open a Terminal Window and issue the following command: \curl -L | bash -s stable -ruby RVM ( Ruby Version Manager) is the Standard for upgrading your Ruby installation on OSX: ( Any Platform - Including OSX Snow Leopard)
