Results 1 to 1 of 1
Oct 6, 2011, 09:01 #1
- Join Date
- May 2002
- Barcelona, Spain
- 0 Post(s)
- 0 Thread(s)
Snow Leopard rubygems mysql2 and MAMP configuration for ruby on rails issue
This is my config:
mamp 2.0.3 (which uses Mysql 5.5)
When creating a new rails project with mysql as the database, I get an error:
An error occured while installing mysql2 (0.3.7),andBundler cannot continue.
Make sure that `gem install mysql2 -v '0.3.7'` succeeds before bundling.
I believe this is because gems can't find the MAMP mysql files. So a tutorial says I should download the MAMP libraries and compile it without server so I can then point the gem to those files. The problem is that all tutorials use ./configure which no longer works for Mysql 5.5, instead you have to use cmake. This tutorial: http://blog.mirotin.net/35/mamp-1-9-...nd-ruby-mysql2 mentions a way to do it using cmake, but this command fails for me:
sudo port install cmake
can't find command port. So I tried with homebrew sudo brew install cmake which gives:
Cowardly refusing to `sudo brew install'
So... What are my options? Rails and rubygems all seem to work, it's just pointing it to the MAMP mysql libraries that I'm having a problem with, I'm very new to rails (started yesterday). Any help would be appreciated.Used to prefer PHP.
Now I prefer Maya but stuck with PHP