Resolvendo o problema da gem mysql2 no Mac OSX

June 25, 2011 at 3:24 am Leave a comment

Olá, pessoal!

Muita gente tem me perguntado sobre um problema na gem mysql2 no Mac OSX. Ao rodar um bundle install utilizando rvm, aparentemente algumas libs não são encontradas, ocasionando um log como este:


 /usr/local/ruby/lib/ruby/gems/1.9.1/gems/mysql2-0.2.6/lib/mysql2/mysql2.bundle
  Reason: image not found - /usr/local/ruby/lib/ruby/gems/1.9.1/gems/mysql2-0.2.6/lib/mysql2/mysql2.bundle

É bem simples de resolver issto. Basta rodar

 sudo install_name_tool -change libmysqlclient.18.dylib /usr/local/mysql/lib/libmysqlclient.18.dylib /Users/*seu_user*/.rvm/gems/ruby-1.9.2-p180/gems/mysql2-0.2.6/lib/mysql2/mysql2.bundle</span>

Apenas troque “/Users/*seu_user*/.rvm/gems/ruby-1.9.2-p180/gems/mysql2-0.2.6/lib/mysql2/mysql2.bundle” pelo local onde apontar o erro.🙂

Entry filed under: Rails, Ruby. Tags: .

Running Emergency Service Drools app (Smart tasks application) Seam 3 – criando o projeto

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Calendar

June 2011
M T W T F S S
« May   Jul »
 12345
6789101112
13141516171819
20212223242526
27282930  

Most Recent Posts


%d bloggers like this: