Error after upgrading mysql2 gem -> 0.2.7

Hi

I can’t boot up my project after updating mysql to 5.5.10 and mysql2
gem to 0.2.7

MacBook-Pro:shops cheeba$ rails s
dyld: lazy symbol binding failed: Symbol not found:
_mysql_get_client_info
Referenced from:
/Library/Ruby/Gems/1.8/gems/mysql2-0.2.7/lib/mysql2/mysql2.bundle
Expected in: flat namespace

dyld: Symbol not found: _mysql_get_client_info
Referenced from:
/Library/Ruby/Gems/1.8/gems/mysql2-0.2.7/lib/mysql2/mysql2.bundle
Expected in: flat namespace

Trace/BPT trap

Search for _mysql_get_client_info gave nothing. I’ve tried both 32 and
64 bit mysql installation. Any comments please? I’m stuck

ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
Rails 3.0.1

On Apr 6, 2011, at 5:38 AM, Sanin Oblaster wrote:

ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
Rails 3.0.1

When you updated, did you install from source? This sort of Symbol not
found nonsense sounds like the gem didn’t reference the correct source
tree when it built the native components.

Walter

Walter D. wrote in post #991242:

When you updated, did you install from source?

Thanks for answer, problem is solved

updated mysql again from installer mysql-5.5.10-osx10.6-x86_64.dmg

then mysql2 gem:
$ sudo gem install mysql2 –
–with-mysql-config=/usr/local/mysql-5.5.10-osx10.6-x86_64/bin/mysql_config

and this time it worked, problem was in 32-bit MySQL installation

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs