centos6.2安装coreseek4 错误
$ curl -O -L http://mirrors.kernel.org/gnu/m4/m4-1.4.13.tar.gz $ tar -xzvf m4-1.4.13.tar.gz $ cd m4-1.4.13 $ ./configure --prefix=/usr/local $ make && make install $ cd .. $ curl -O -L http://mirrors.kernel.org/gnu/autoconf/autoconf-2.65.tar.gz $ tar -xzvf autoconf-2.65.tar.gz $ cd autoconf-2.65 $ ./configure --prefix=/usr/local $ make && make install $ cd .. $ curl -O -L http://mirrors.kernel.org/gnu/automake/automake-1.11.tar.gz $ tar xzvf automake-1.11.tar.gz $ cd automake-1.11 $ ./configure --prefix=/usr/local $ make && make install $ cd .. $ curl -O -L http://mirrors.kernel.org/gnu/libtool/libtool-2.2.6b.tar.gz $ tar xzvf libtool-2.2.6b.tar.gz $ cd libtool-2.2.6b $ ./configure --prefix=/usr/local $ make && make install $ cd ..
?接着安装:
?
?
##安装mmseg $ cd mmseg-3.2.14 $ ./bootstrap $ ./configure --prefix=/usr/local/mmseg3 $ make && make install $ cd ..
?接着是:
?
##安装coreseek,需提前安装mysql以支持mysql数据源
$ cd csft-3.2.14$ sh buildconf.sh$ ./configure --prefix=/usr/local/coreseek --without-unixodbc --with-mmseg --with-mmseg-includes=/usr/local/mmseg3/include/mmseg/ --with-mmseg-libs=/usr/local/mmseg3/lib/ --with-mysql --with-mysql-includes=/opt/local/include/mysql5/mysql --with-mysql-libs=/opt/local/lib/mysql5/mysql$ make && make install$ cd ..
?注意,mysql方面要和本机安装的mysql目录相同
#测试mmseg分词,coreseek搜索(需要预先设置好字符集为zh_CN.UTF-8,确保正确显示中文) $ cd testpack $ cat var/test/test.xml #此时应该正确显示中文 $ /usr/local/mmseg3/bin/mmseg -d /usr/local/mmseg3/etc var/test/test.xml $ /usr/local/coreseek/bin/indexer -c etc/csft.conf --all $ /usr/local/coreseek/bin/search -c etc/csft.conf 网络搜索