当我尝试配置Sphinx Search时,我得到以下内容,我相信很多人以前见过......
(在Linux VPS上使用Cent OS。已下载并解压缩Sphinx tarball。)
ERROR: cannot find MySQL include files.
Check that you do have MySQL include files installed.
The package name is typically 'mysql-devel'.
If include files are installed on your system, but you are still getting
this message, you should do one of the following:
1) either specify includes location explicitly, using --with-mysql-includes;
2) or specify MySQL installation root location explicitly, using --with-mysql;
3) or make sure that the path to 'mysql_config' program is listed in
your PATH environment variable.
To disable MySQL support, use --without-mysql option.
所以,我跑# which mysql-includes
来找到它,这就是我得到的......
/usr/bin/which: no mysql-devel in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
这可能也是一种外来语言,现在我被困住了。我知道我的服务器上安装了MySQL,因为我已经设置并使用了DB。任何人都可以帮助我克服这个障碍吗?
此外,如何使用--with-mysql-includes
等内容的好例子是什么?
答案 0 :(得分:2)
yum install mysql-devel
这将从CentOS repo的
中获取mysql开发包