系统为 OS X,rvm 安装的ruby1.9.3。mysql 用 brew 安装的,当前版本为5.6.12
。安装的时候遇到老问题:
mysql.h is missing. please check your installation of mysql and try again.
之前做一个软连接就可以搞定:
sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib
但是这次怎么都不行。大家说说问题出在哪儿了?
我试着找了一下,结果明明就有这个头文件
$ find /usr -name mysql.h /usr/local/Cellar/mysql/5.6.10/include/mysql.h /usr/local/Cellar/mysql/5.6.12/include/mysql.h /usr/local/include/mysql.h