简体   繁体   中英

MySQL / Ruby on Rails setup issues

I'm trying to get ruby on rails working nicely with MySQL on Mac OS X 10.7.4. I've run into the following issue (I have gem 'mysql2' in my Gemfile):

dlopen(/Users/Ringo/.rvm/gems/ruby-1.9.3-p194@gemset/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle, 9): Library not loaded: libmysqlclient.18.dylib

A couple of potential issues: I have installed mysql with the dmg available here: http://dev.mysql.com/downloads/mysql/

I don't know if I need some specific mysql client libraries or what. I didn't have to specify a mysql username / password even when I installed that. I did install the prefpane that comes with it and the claim is that mysql is running.

这很简单:

sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM