So I've got a Ruby on Rails application that I am trying to run (in development) on Snow Leopard. I've got it working on my Ubuntu computer, but now I need to get my Snow Leopard environment set up.
Originally, I installed the MySQL 2.8.1 Ruby Gem and was running into this issue:
uninitialized constant MysqlCompat::MysqlRes
But thanks to this tutorial I was able to resolve it by running this command and installing a previous version of the Gem:
export ARCHFLAGS="-arch i386 -arch x86_64" ;sudo gem install --no-rdoc --no-ri -v=2.7 mysql -- --with-mysql-dir=/usr/local/mysql --with-mysql-config=/usr/local/mysql/bin/mysql_config
Now that I've resolved that issue, I'm running into a different error:
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'
This happens when I try to run
rake db:migrate as well as when the server is running. How can I resolve this issue?