Error installing Mysql2 gem- 10.6 Server

不羁的心 提交于 2019-12-05 17:53:41

Figured it out:

sudo env ARCHFLAGS="-arch x86_64" gem install mysql2 -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
mool

I found out you have to have the package mysql-devel installed ... On Centos do yum -y install mysql-devel and you're good to go.

rndrfero

I have the same problem on OSX 10.5 with RVM with the "system" Ruby interpreter. Using Ruby 1.8.7 through RVM fixed the situation.

I was inspired by: https://gist.github.com/440334#file_gistfile1.txt

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