coreseek/sphinx CentOS6.4下安装
一、在CentOS6.4下安装coreseek之前需要预先安装以下软件
1.打开终端 输入 su 获取管理员权限
2.输入命令 yum install make gcc g++ gcc-c++ libtool autoconf automake imake mysql-devel libxml2-devel expat-devel
在使用命令的时候出现如下错误
Error: Cannot find a valid baseurl for repo: addons
解决方法:echo "nameserver 8.8.8.8" >> /etc/resolv.conf
二、下载安装coreseek-4.1
wget http://www.coreseek.cn/uploads/csft/4.0/coreseek-4.1-beta.tar.gz
tar xzvf
coreseek-4.1-beta.tar.gz
cd coreseek-4.1-beta
软件下载地址: http://vdisk.weibo.com/s/z-JIj1kqxmOz 【版本为3.2.14】
也可以到官网下载 http://www.coreseek.cn
##安装mmseg
cd mmseg-3.2.14
./bootstrap #输出的warning信息可以忽略,如果出现error则需要解决
./configure --prefix=/usr/local/mmseg3
make && make install
cd ..
##安装coreseek
cd csft-4.1
sh buildconf.sh #输出的warning信息可以忽略,如果出现error则需要解决
./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
make && make install
cd ..
##测试mmseg分词,coreseek搜索
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/indexer: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory
解决方案:
32位系统:ln -s /usr/local/mysql/lib/libmysqlclient.so.18 /usr/lib/
64位系统:ln -s /usr/local/mysql/lib/libmysqlclient.so.18 /usr/lib64/
/usr/local/coreseek/bin/search -c etc/csft.conf 网络搜索
至此全部安装成【后续需要配置】
你可能会遇到的问题:
1.
2.error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory
解决方案:在/etc/ld.so.conf中加一行/usr/local/lib,运行ldconfig