0

I am trying to connect to MySQL using Ruby, and been getting following issue:

dyld: lazy symbol binding failed: Symbol not found: _mysql_init Referenced from: /Library/Ruby/Site/1.8/universal-darwin10.0/mysql.bundle Expected in: flat namespace

dyld: Symbol not found: _mysql_init Referenced from: /Library/Ruby/Site/1.8/universal-darwin10.0/mysql.bundle Expected in: flat namespace

Trace/BPT trap

I am using 'ruby-mysql' gem, and run x86_64 bit MySQL as advised here http://weblog.rubyonrails.org/2009/8/30/upgrading-to-snow-leopard

How can I fix this error?

user229044
  • 232,980
  • 40
  • 330
  • 338
rookieRailer
  • 2,313
  • 2
  • 28
  • 48
  • 1
    When you post a question, you should include an actual answerable question rather than simply describing a situation. – user229044 Jun 15 '11 at 20:12

1 Answers1

1

Rails, MySQL and Snow Leopard One of the answerers of this question had your problem (is there a way to link to an answer?)

He solved it this way:

sudo rm -f /Library/Ruby/Site/1.8/universal-darwin10.0/mysql.bundle

Haven't tried it myself, though.

Community
  • 1
  • 1
Mario
  • 2,942
  • 1
  • 25
  • 38