MAC下Rails连接mysql出现 dyld: Symbol not found: _mysql_get_client_info 的解决办法

2014-2-12   /   阅读数:4558   /   分类: Ruby

我执行了

rake db:create

出现了:

dyld: lazy symbol binding failed: Symbol not found: _mysql_get_client_info
  Referenced from: /Users/dren_a/.rvm/gems/ruby-1.9.3-p484/extensions/x86_64-darwin-13/1.9.1/mysql2-0.3.15/mysql2/mysql2.bundle
  Expected in: flat namespace

dyld: Symbol not found: _mysql_get_client_info
  Referenced from: /Users/dren_a/.rvm/gems/ruby-1.9.3-p484/extensions/x86_64-darwin-13/1.9.1/mysql2-0.3.15/mysql2/mysql2.bundle
  Expected in: flat namespace

我用的是OS X 10.9,Ruby 1.9.3,Rails 4.0.2。这个错误我怎么重新安装 mysql2 这个gem都解决不了,配置文件都写对了也没用。

解决办法很简单: 升级到最新的Ruby 2.1.0,问题解决!


WRITTEN BY

avatar
标签: MAC mysql Rials

发表评论:

© 2011-2019 岁寒  |  Powered by Emlog