摘要: libmmseg主要被作者用来实现Sphinx全文检索软件的中文分词功能,因此作者给Sphinx提供了一个补丁文件,可以让Sphinx集成libmmseg,从而支持对于中文文章的全文检索功能。安装mmseg同样是./configure make sudo make install但是注意把改一下src/css/UnigramCorpusReader.cpp文件,加一行#include <string.h>,否则make时会报错:error: 'strncmp' was not declared in this scope 阅读全文
posted @ 2011-05-07 22:39 张朝阳 阅读(850) 评论(1) 推荐(0) 编辑
摘要: 上次安装Xapian的时候我们说编译一个xapian的C++程序时总是说"undefined reference to xxx".其实我们仔细观察在./configure xapian-core的时候有这么一句:nothing to be done for all,然后在make的时候也有:nothing to be done for all,nothing to be done for all-am。这句提示是说明你已经编译好了,而且没有对代码进行任何改动。make clean 清除安装时留下的文件再运行一下ldconfig,更新链接库缓存。 阅读全文
posted @ 2011-05-07 09:43 张朝阳 阅读(2646) 评论(0) 推荐(0) 编辑