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 h开发者_如何学运维ttp://weblog.rubyonrails.org/2009/8/30/upgrading-to-snow-leopard
How can I fix this error?
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.
精彩评论