[shell]在线安装 Coreseek-3.2.14 版的shell脚本

在线安装 Coreseek-3.2.14 版的shell脚本,不但节省手工一步步安装的时间,还减少了工手安装时可能会发生的错误。

 
#~ 下载Coreseek数据库索引系统

echo "download coreseek-3.2.14..."

# wget http://www.coreseek.cn/uploads/csft/3.2/coreseek-3.2.14.tar.gz -O /tmp/coreseek-3.2.14.tar.gz
tar -xzvf /tmp/coreseek-3.2.14.tar.gz -C /tmp

#~ 安装必要的开发包
yum -y install make gcc g++ gcc-c++ libtool autoconf automake imake mysql-devel libxml2-devel expat-devel

#~ 安装mmseg分词引擎
cd /tmp/coreseek-3.2.14/mmseg-3.2.14
aclocal
libtoolize --force
automake --add-missing
autoconf
autoheader
make clean

./configure --prefix=/usr/local/mmseg
make
make install

ln -s /usr/local/mmseg/bin/mmseg /usr/local/bin/mmseg

#~ 安装sphinx系统
cd /tmp/coreseek-3.2.14/csft-3.2.14
sh buildconf.sh
./configure --prefix=/usr/local/coreseek --without-python --without-unixodbc --with-mmseg --with-mmseg-includes=/usr/local/mmseg/include/mmseg/ --with-mmseg-libs=/usr/local/mmseg/lib/ --without-mysql
make
make install

ln -s /usr/local/coreseek/bin/indeser /usr/local/bin/indexer
ln -s /usr/local/coreseek/bin/searchd /usr/local/bin/searchd



你可能感兴趣的:(shell,职场,sphinx,coreseek,休闲)