Rails and MySQL with Snow Leopard

| No Comments | No TrackBacks
There are a number of guides online for how to setup Rails with Snow Leopard, but I had to follow steps from a few of them to get my setup working again.

If you have everything setup in /usr/local, here's how to get it working again.

  1. Rebuild MySQL in /usr/local
  2. Rebuilt ruby and rubygems in /usr/local
  3. Reinstall the mysql gem with the following command which ensures the gem designed for the 64 bit architecture is installed. (source)

    $ sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config

  4. Uninstall and Reinstall Mongrel and some dependent gems (source): 

    1. gem uninstall mongrel cgi_multipart_eof_fix
    2. gem uninstall fastthread ferret libxml-ruby rack
    3. gem install mongrel
    4. gem install fastthread ferret libxml-ruby rack

No TrackBacks

TrackBack URL: http://abrahamneben.com/mt/mt-tb.cgi/58

Leave a comment

Powered by Movable Type 4.23-en