在哪里可以找到mysql包含用于在MAMP上配置Sphinx的文件
我尝试使用在哪里可以找到mysql包含用于在MAMP上配置Sphinx的文件,sphinx,Sphinx,我尝试使用/。configure 得到以下错误 谁能告诉我如何解决这个问题??我无法在MAMP/Library中找到mysql文件和include文件夹 任何帮助 configuring Sphinx ------------------ checking for CFLAGS needed for pthreads... none checking for LIBS needed for pthreads... -lpthread checking for pthreads... found
/。configure
得到以下错误
谁能告诉我如何解决这个问题??我无法在MAMP/Library中找到mysql文件和include文件夹
任何帮助
configuring Sphinx
------------------
checking for CFLAGS needed for pthreads... none
checking for LIBS needed for pthreads... -lpthread
checking for pthreads... found
checking whether to compile with MySQL support... yes
checking for mysql_config... not found
checking MySQL include files... configure: error: missing include files.
******************************************************************************
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.
******************************************************************************
非常感谢,MAMP缺少一些mysql库,其中包含sphinx需要的文件。您必须通过将所需文件复制到
MAMP/Library/
目录来升级MAMP
MAMP/Library
目录并创建mysql目录:include/
和lib/
复制到刚才创建的MAMP/Library/mysql
/Applications/
中,则您的配置应如下所示:
$./configure--prefix=/usr/local/sphinx--with mysql includes=/Applications/MAMP/Library/mysql/include--with mysql libs=/Applications/MAMP/Library/mysql/lib我希望这有帮助。您可以查看我对这个问题的看法,或者如果遇到任何其他问题,请告诉我。MAMP缺少一些mysql库,其中包含sphinx需要的文件。您必须通过将所需文件复制到
MAMP/Library/
目录来升级MAMP
MAMP/Library
目录并创建mysql目录:include/
和lib/
复制到刚才创建的MAMP/Library/mysql
/Applications/
中,则您的配置应如下所示:
$./configure--prefix=/usr/local/sphinx--with mysql includes=/Applications/MAMP/Library/mysql/include--with mysql libs=/Applications/MAMP/Library/mysql/lib我希望这有帮助。你可以查看我关于这个问题的报告,或者如果你遇到任何其他问题,请告诉我。我也有同样的错误,我所做的是安装了一个mysql-devel,它适合我的案例服务器mysql-devel.x86_64
# yum install mysql-devel.x86_64
然后我运行./configure with out mysql来暂时禁用mysql支持
# ./configure --without-mysql
这对我很有效。我在留言的最后得到了这个
generating configuration files
------------------------------
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating libstemmer_c/Makefile
config.status: creating doc/Makefile
config.status: creating sphinx.conf.dist
config.status: creating sphinx-min.conf.dist
config.status: creating config/config.h
config.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!
希望能有所帮助。我也犯了同样的错误,我安装了一个mysql-devel,它适合我的案例服务器mysql-devel.x86\u 64
# yum install mysql-devel.x86_64
然后我运行./configure with out mysql来暂时禁用mysql支持
# ./configure --without-mysql
这对我很有效。我在留言的最后得到了这个
generating configuration files
------------------------------
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating libstemmer_c/Makefile
config.status: creating doc/Makefile
config.status: creating sphinx.conf.dist
config.status: creating sphinx-min.conf.dist
config.status: creating config/config.h
config.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!
希望能有帮助。我正在和芬克一起尝试。。但是无法获取mysql:(我正在尝试fink..但是无法获取mysql:(我尝试了这个,当我下载:mysql-5.5.25a.tar.gz时,我没有找到一个lib文件夹,我找到了libservices、libmysqld和libmysql…我将尝试libmysql…@Mark Steudel我不明白你的观点,你解决了问题吗?如果没有,请详细说明,以便我可以帮助你。我尝试了这个,当我下载:mysql-5.5.25a.t时ar.gz我没有找到lib文件夹我找到了libservices、libmysqld和libmysql…我要试试libmysql…@Mark Steudel我不明白你的意思,你解决问题了吗?如果没有,请详细说明,以便我可以帮助你。