Andy's Blog » » CoreSeek 3.2 安装手记 & 安装说明

CoreSeek 3.2 安装手记 & 安装说明

我按下面的官方说明安装,结果没找到 libmmseg,但最后还是被我搞定了,顺便记录一下手记

1. 先安装 mmseg

# wget -c http://www.coreseek.cn/uploads/csft/3.1/Source/mmseg-3.1.tar.gz
# tar -zxvf mmseg-3.1.tar.gz
# cd mmseg-3.1
# ./configure --prefix=/usr/local/mmseg
# make && make install

然后看一下是否安装成功,成功应该是这样的

# mmseg
Coreseek COS(tm) MM Segment 1.0
Copyright By Coreseek.com All Right Reserved.
Usage: mmseg <option> <file>
-u <unidict>           Unigram Dictionary
-r           Combine with -u, used a plain text build Unigram Dictionary, default Off
-b <Synonyms>           Synonyms Dictionary
-h            print this help and exit

2. 安装所需环境

# yum install glibc-common libtool autoconf automake mysql-devel expat-devel

3. 安装 coreseek

# wget -c http://www.coreseek.cn/uploads/csft/3.2.3/csft_3.2.tar.gz
# tar -zxvf csft_3.2.tar.gz
# ./configure --prefix=/usr/local/sphinx --with-mysql --with-mmseg=/usr/local/mmseg --with-mmseg-includes=/usr/local/mmseg/include/mmseg/ --with-mmseg-libs=/usr/local/mmseg/lib/

如果 mysql 是你自己编译安装的,请 configure 时指定以下路径

--with-mysql-includes=/usr/local/mysql/include/mysql/ --with-mysql-libs=/usr/local/mysql/lib/mysql/

generating configuration files
------------------------------

configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating libstemmer_c/Makefile
config.status: creating sphinx.conf.dist
config.status: creating sphinx-min.conf.dist
config.status: creating config/config.h
config.status: executing depfiles commands

configuration done
------------------

You can now run 'make' to build Sphinx binaries,
and then run 'make install' to install them.

接下来

# make

如果出错,那很不幸,我也不知道怎么办

# make install

以下是官方的安装说明

安装说明:
============================================================
依赖环境安装:

Debina等使用deb系统:

aptitude -y install yum glibc-common build-essential libtool autoconf automake mysql-client libexpat-dev

Centos等使用yum系统:

yum -y install glibc-common libtool autoconf automake mysql-devel expat-devel

BSD系统:

pkg_add -r libtool autoconf automake mysql5-client iconv

coreseek安装:

wget -d http://www.coreseek.cn/uploads/csft/3.2.3/csft_3.2.tar.gz
 tar xzvf csft_3.2.tar.gz
 cd csft3.2-3
 
aclocal
libtoolize --force
automake --add-missing
autoconf
autoheader
make clean
./configure --prefix=/usr/local/mmseg3
make
make install
cp -f src/*/*.h /usr/local/mmseg3/include/mmseg/

cd ..
aclocal
libtoolize --force
automake --add-missing
autoconf
autoheader
perl -pi -e 's/lpthread/lpthread -liconv/g' src/Makefile
make clean
./configure --prefix=/usr/local/coreseek --enable-id64 --without-python --with-mysql --with-mmseg --with-mmseg-includes=/usr/local/mmseg3/include/mmseg/ --with-mmseg-libs=/usr/local/mmseg3/lib/
make
make install

附加:
如需启用python支持,请安装或者升级至python2.6,configure之中,去掉--without-python,加上--with-python,然后重新编译安装

Incoming search terms:

Tags: Sphinx, 安装, Coreseek, mmseg, 手记

本文地址: http://www.21andy.com/new/20100410/1832.html

1 评论 to “PHP开源CMS之MODx”

  1. yang 于 2010-04-12 18:18:58 发表:

    包好像有点问题,解压缩的时候出现了错误。