Error in db: create in Mac OSX Montain Lion

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?

    
asked by anonymous 07.02.2014 / 12:50

1 answer

2

I was able to solve the problem!

Following a post in SOEN, in this question: link

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 to re-install the gems into a clean gem and make sure you're using the ruby version that you think is

Quickly translated:

"That means you're trying to run ruby 1.8.7 with gems that were compiled for ruby 1.9.3 I was going to try to re-install the gems in a clean gemset and make sure you're using the ruby version that you thinks it's "

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

    
08.02.2014 / 17:58