From: Michael Enslow Date: 2011-10-04T14:59:13+09:00 Subject: Re: gem install mysql error Aleksi K. wrote in post #1005603: > I solved the problem by using 'ruby-mysql' gem instead of 'mysql' Thanks Aleksi. This solved my problem. (I'm using Mac 10.6.8) Regarding MAMP... > And by the way, I tried to use rails and passenger with MAMP and it was > really pain in the ass and won't recommend it. ... I decided to try to get things to work with MAMP and I was able to get is up and running. Here's how. I installed the ruby-mysql gem with the following configuration. (NO LINE BREAKS) sudo gem install ruby-mysql -- --with-mysql-config=/Applications/MAMP/Library/bin/mysql_config --with-mysql-dir=/Applications/MAMP/db/mysql --with-mysql-lib=/Applications/MAMP/Library/bin/ --with-mysql-include=/Applications/MAMP/Library/bin/ This should install correctly, but your app will then give you a error reading: No such file or directory - /tmp/mysql.sock Correct this error by specifying the socket in your database.yml file: production: adapter: mysql encoding: utf8 ... socket: /Applications/MAMP/tmp/mysql/mysql.sock Restart the app: $: touch tmp/restart.txt And that worked for me. -- Posted via http://www.ruby-forum.com/.