Ubuntu Server 下编译 sphinx 的 xmlpipe2
在 Ubuntu Server 默认环境下编译安装 sphinx 竟然不支持 xmlpipe2 数据源,提示
WARNING: source 'index1': xmlpipe2 support NOT compiled in. To use xmlpipe2, install missing XML libraries, reconfigure, and rebuild Sphinx
在官方论坛里面找到答案。
专注于Web应用程序开发
在 Ubuntu Server 默认环境下编译安装 sphinx 竟然不支持 xmlpipe2 数据源,提示
WARNING: source 'index1': xmlpipe2 support NOT compiled in. To use xmlpipe2, install missing XML libraries, reconfigure, and rebuild Sphinx
在官方论坛里面找到答案。
今天给 Damdon 做 Search Engine,用的是 sphinx 0.9.9 全文检索引擎,由于某些 Content 包含多个分类 (Category),因此需要使用 sphinx 的 MVA (multi-valued-attribute) 属性类型,我使用了 xmlpipe2 数据源
昨天研究了一下 sphinx,回家在 Mac OS X 下用同样的方式编译 sphinx 时发生错误,
svn export http://sphinxsearch.googlecode.com/svn/trunk sphinx
cd sphinx
./configure --prefix=/usr/local/sphinx --with-mysql
make
...
sphinxstd.cpp: In function ‘bool sphIsLtLib()’:
sphinxstd.cpp:1001: error: ‘_CS_GNU_LIBPTHREAD_VERSION’ was not declared in this scope
make[2]: *** [sphinxstd.o] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1
最终在 sphinx 的 bug list 下找到该问题的解决办法 (bug #515)。
...
© 2011 Bun Wong
本博客基于 Bun PHP Framework 构建 • 粤ICP备07036370号