sphinx安装错误解决

来源:互联网 发布:百度网盘下载助手mac 编辑:程序博客网 时间:2024/05/22 12:18
在安装sphinx的过程中碰到这个问题,大致是提示没有mysql相关的文件,按照提示大致有两个解决方案,
******************************************************************************
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 gettingthis 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.******************************************************************************
第一个解决方案大致是:
$ ./configure --prefix=/usr/local/sphinx --with-mysql-includes=/这里是你的mysql路径/mysql/include --with-mysql-libs=/
这里是你的mysql路径/mysql/lib(该方法稍微麻烦些没有尝试过,个人选择的第二个解决方案)
第二个解决方案:
 # yum install mysql-devel.x86_64
 # ./configure --without-mysql
 # make install
 三行代码就可以了
generating configuration files ------------------------------configure: creating ./config.statusconfig.status: creating Makefileconfig.status: creating src/Makefileconfig.status: creating libstemmer_c/Makefileconfig.status: creating doc/Makefileconfig.status: creating sphinx.conf.distconfig.status: creating sphinx-min.conf.distconfig.status: creating config/config.hconfig.status: executing depfiles commands configuration done ------------------You can now run 'make install' to build and install Sphinx binaries.On a multi-core machine, try 'make -j4 install' to speed up the build.Updates, articles, help forum, and commercial support, consulting, training,and development services are available at http://sphinxsearch.com/Thank you for choosing Sphinx!

1 0
原创粉丝点击