Installing Rails on OS X

Posted on May 15, 2006
Filed Under /dev/null/ | 79 views |

I decided today to finally take the plunge and check out Ruby on Rails in greater detail, specifically under OS X. Installation instructions vary across the web from the complete crap to the pretty good. I decided to use Installing Rails on Tiger from MacZealots and so far so good, except for a few hiccups.

  1. In the section dealing with fixrbconfig the current version of that gem will most likely fail if you’re running the latest version of the Apple Developer Tools. fixrbconfig expects to find the ruby.h header in /usr/lib/ruby/1.8/powerpc-darwin8.0/ruby.h however on my system it was in /usr/lib/ruby/1.8/universal-darwin8.0/ruby.h. To fix this:

    sudo ln -s /usr/lib/ruby/1.
    8/universal-darwin8.0/* /usr/lib/ruby/1.8/powerpc-darwin8.0

    then re-run fixrbconfig.

  2. In the section dealing with installing sqlite3 instead of sudo gem install sqlite3 you’ll need to type

    sudo gem install sqlite3-ruby

    And it’s option 2, not option 1.

Comments

Leave a Reply