I need to install MySQL 5.1 for my rails application. Using Homebrew, I am unable to install a specific version. I tried brew install mysql51, but that didn’t work.
Installing the right version from the mysql site did not work properly for me. I want to be able to start the server easily from the command line using something like mysql.server start.
When I installed 5.1 from the official site, I got this rails error:
dlopen(/Users/sb1752/.rvm/gems/ruby-1.9.3-p0/gems/mysql2-0.3.10/lib/mysql2/mysql2.bundle, 9): Library not loaded: /usr/local/lib/libmysqlclient.18.dylib
Referenced from: /Users/sb1752/.rvm/gems/ruby-1.9.3-p0/gems/mysql2-0.3.10/lib/mysql2/mysql2.bundle
Reason: image not found – /Users/sb1752/.rvm/gems/ruby-1.9.3-p0/gems/mysql2-0.3.10/lib/mysql2/mysql2.bundle
I don’t get this error if I do a brew install though.
Download corresponding installer from the official site and install.