Error in db:create on Mac OSX Montain Lion

Asked

Viewed 92 times

4

alexandesigner$ rails server

dyld: lazy symbol binding failed: Symbol not found: _mysql_get_client_info
  Referenced from: /Users/alexandesigner/.rvm/gems/ruby-2.0.0-p353/extensions/x86_64-darwin-12/2.0.0-static/mysql2-0.3.15/mysql2/mysql2.bundle
  Expected in: flat namespace

dyld: Symbol not found: _mysql_get_client_info
  Referenced from: /Users/alexandesigner/.rvm/gems/ruby-2.0.0-p353/extensions/x86_64-darwin-12/2.0.0-static/mysql2-0.3.15/mysql2/mysql2.bundle
  Expected in: flat namespace

Trace/BPT trap: 5

How to solve it?

1 answer

2


I managed to solve the problem!

following a post on SOEN, in this question: https://stackoverflow.com/questions/13773633/symbol-non-found-when-run-rails

It Means that you’re trying to run ruby 1.8.7 with Gems that Were Compiled for ruby 1.9.3 - Something has got its Knickers in a twist

I’d Try re-installing the Gems into a clean gemset and make sure you are using the ruby version that you think you are

How quickly translated:

"This means that you are trying to run ruby 1.8.7 with gems that have been compiled for ruby 1.9.3 I was going to try to re-install the gems in a clean gemset and make sure you are using the ruby version that you think it is"

I realized that it was the versions of mysql2 I was using, I just changed and I set in the gemfile from 0.3.15 to 0.3.11

  • Good! You can accept your answer. There on the left, below the votes.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.