一、問題ui
using config file 'etc/csft.conf'...
indexing index 'xml'...
WARNING: source 'xml': xmlpipe2 support NOT compiled in. To use xmlpipe2, install missing XML libraries, reconfigure, and rebuild Sphinx
ERROR: index 'xml': failed to configure some of the sources, will not index.spa
二、解決方法.net
It's failing since the XML handler, libexpat, isn't installed. When I built Sphinx on my
own production Ubuntu server, which uses xmlpipe2, I seem to recall doing the following:
As root:
apt-get install libexpat libexpat-dev
Then reconfigure and recompile Sphinx.server
四、make clean xml
You can now run 'make' to build Sphinx binaries,
and then run 'make install' to install them.ip
問題二get
錯誤描述it
/usr/local/sphinx/src/sphinx.cpp:20060:undefined reference to `libiconv_open'
/usr/local/sphinx/src/sphinx.cpp:20078: undefined reference to `libiconv'
/usr/local/sphinx/src/sphinx.cpp:20084: undefined reference to `libiconv_close'
collect2: ld returned 1exit status
make[2]:***[indexer]Error1
make[2]:Leaving directory `/home/sphinx/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/sphinx/src'
make: *** [all-recursive] Error 1pip
解決辦法:打開configure文件,找到「#define USE_LIBICONV 1」,將註釋去掉,並將1改爲0。io