Install Coreseek-3.2.13 in CentOS-6.2
Blogs20122012-10-07
Coreseek-3.2.13 install in CentOS-6.2
It is never easy to install Coreseek fulltext-search source-codes. The Coreseekâs installation documents are not very clear, and its installation largely depends on environment settings. So itâs common having problems to install Coreseek.
After smoothly installing Sphinx 2.0.5, SCWS-1.2.0, I finally installed successfully Coreseek-3.2.13 in CentOS 6.2. Here I summarized the steps.
1. pre-install support packages.
Read the pre-install requirements carefully and check what missed on the server. I use âyumâ to install whatever I needed.
$ sudo yum install mysql-devel libxml2-devel expat-devel imkae gcc-c++
You can use âsudo yum installâ to install other packages such as âDevelopment toolsâ, âphp-develâ etc if needed.
2. Dowload coreseek 3.2.13
Downlad Coreseek, which include 3-parts, and need to install 1 by 1:
$ wget http://www.coreseek.cn/uploads/csft/3.2/coreseek-3.2.13.tar.gz $ tar xzvf coreseek-3.2.13.tar.gz $ cd coreseek-3.2.13
3.Install mmseg part
$ cd mmseg-3.2.13
If you run ./bootstrap directly, the first command: aclocal -I config will fail: config/sys_siglist.m4:20: warning: underquoted definition of SIC_VAR_SYS_SIGLIST
Here is 2 small tricks to fix it: (a) edit bootstrap file, change shabang from #!/bin/sh to #!/bin/bash to inherit path and env variables. (b) use root instead to execute. $ sudo ./bootstrap
It should pass, then use ârootâ permission to do configure & make: $ sudo ./configure âprefix=/usr/local/mmseg $ sudo make $ sudo make install Without âsudoâ, there probably throw a lot of warnings and errors.
4. Install Coreseek part
$ cd csft-3.2.13/
Again, I change buildconf.shâs shabang from #!/bin/sh to #!/bin/bash.
$ sudo bash buildconf.sh
$ ./configure âprefix=/usr/local/coreseek âwithout-unixodbc âwith-mmseg âwith-mmseg-includes=/usr/local/mmseg/include/mmseg/ âwith-mmseg-libs=/usr/local/mmseg/lib/ âwith-mysql $ make; sudo make install
This way it compiled with mysql, and mmseg library.
5. Test by testpack
$ cd testpack/ $ locale to check localeâs LANGâs setting, do the following setup: $ export LANG=zh_CN.utf-8 $ export LC_ALL=zh_CN.utf-8
You may put these variables into /etc/profile.d/lang.sh or $HOME/.bash_profile or /etc/sysconfig/i18n or $HOME/.i18n.
$ /usr/local/mmseg/bin/mmseg -d /usr/local/mmseg/etc var/test/test.xml The correct word segments display. That is cool.
From itâs README (http://www.coreseek.cn/products-install/install\_on\_bsd\_linux/), it needs higher version of m4,automake,autoconf (in CentOS 5.5) which I donât have. My platform is CentOS 6.2(not CentOS 5.5), and the versions of these tools are lower than their requirements. However, it still works.
