开发者

Connecting MySQL with Ruby

开发者 https://www.devze.com 2023-03-13 11:35 出处:网络
I am trying to connect to MySQL using Ruby, and been getting following issue: dyld: lazy symbol binding failed: Symbol not found: _mysql_init

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消