Getting Rails 3 (pre) up on OSX

I sat down to work on the most recent Bugmash. First I followed Yehuda Katz’s instructions on getting started with Rails 3. Those instructions worked great for running an app on Rails 3, but they’re not quite sufficient for working on Rails itself. Here are some pointers for that, as well as a few unresolved issues:

  1. Install the latest MySQL using the DMG version. By default, it installs into /usr/local/mysql, which is fine.
  2. Install the latest PostgreSQL also using the DMG version. By default, it installs into /Library/PostgreSQL, which is fine.
  3. Add /Library/PostgreSQL/bin to your $PATH. You probably want to do this in your ~/.bash_profile or equivalent.
  4. Go to the directory in which you cloned Rails and add a build_options.yml file. In it, place the following:
  5. Run gem bundle -b build_options.yml
  6. Run rake

Most of the tests run so far, but I’m still having trouble getting Rails 3 to actually connect to the MySQL and PostgreSQL databases. I’ll have to work on that.

Comments powered byDisqus.