Ruby on Rails server won't start: dyld: lazy symbol binding failed: Symbol not found: _mysql_get_client_info

旧时模样 提交于 2019-12-06 15:05:32
user1518115

if you are using rvm/without rvm(just use sudo) then please use the following command which solve the issues.

rvmsudo ARCHFLAGS="-arch x86_64" gem install mysql2 -- --with-mysql-config=/usr/local/mysql/bin/mysql_config --with-opt-lib=/usr/local/mysql/lib 

Uninstalling mysql2 gem and then installing gem with sudo solved it for me.

gem uninstall mysql2
sudo gem install mysql2

I can just add that you first need to uninstall the mysql2 gem and then reinstall with the instructions above.

sudo gem uninstall mysql2
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!