MAC+ZendServer+MySQL环境下编译sphinx时mysql.h file not found

我的开发环境:

操作系统 OSX 10.9.3,外加ZendServer,mySQL是zendServer安装后通过zendServer安装上去的。

编译安装sphinx2.1.8时,configure可以顺利通过,但make时报错:mysql.h file not found.查了ZendServer目录下的mysql目录,没发现有mysql.h文件,只好从apple.com网上下载一个mysql开发包

网址:http://support.apple.com/kb/HT200150?viewlocale=en_US,找到自己的mySQL版本。

打开终端Terminal

tar -xzf MySQL-55.binaries.tar.gz

cd MySQL-55.binaries

sudo tar -xzvf MySQL-55.root.tar.gz -C /

然后再进入sphinx2.1.8目录

./configure –prefix=/Users/dony/myphp/sphinx2.1.8 –with-mysql

make

make install


相关评论

暂无评论

我要评论