Centos+php+coreseek+sphinx+mysql One Coreseek installation _php instance

Source: Internet
Author: User

First attach coreseek4.1 version download

Pre-preparation work:

Yum install make gcc g++ automake libtool mysql-client libmysqlclient15-dev libxml2-dev libexpat1-dev autoconf automake li Btool

Let's say we download the package under/USR/LOCAL/SRC

CD/USR/LOCAL/SRC
tar zxvf coreseek-4.1-beta.tar.gz
CD Coreseek-4.1-beta

1. Install mmseg participle module

CD mmseg-3.2.14/./bootstrap./configure--prefix=/usr/local/mmseg3makemake Install

2. Install Coreseek

Cd.. /csft-4.1/

First solve the problems that will arise later:

A) Modify the Sphinxexpr.cpp file to modify the t val = expreval (This->m_parg, Tmatch) in the file to t val = This->expreval (This->m_parg, t Match), a total of three

VI src/sphinxexpr.cpp

b) Modify the buildconf.sh file, add a line to && aclocal \ && automake--add-missing \, which becomes

#! /bin/sh
autoheader \
&& aclocal
&& automake--add-missing
&& automake-- Foreign \
&& autoconf

c) modify file makefile, find LIBS, LIBS =-lm-lexpat-l/usr/local/lib Modify to LIBS =-lm-lexpat-liconv-l/usr/local/lib

VI./src/makefile/

Or

If you have already done a./configure operation before you, modify the file configure to find #define USE_LIBICONV 1 modified to define USE_LIBICONV 0

d) Change of document Configure.ac,am_init_automake ([-wall-werror foreign]) to Am_init_automake ([-wall foreign])

Add a row under Ac_prog_ranlib Am_prog_ar

And then run

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 make

If there are more questions, please leave a message to discuss, thank you, my information is also integrated online resources

Testing at the server side:

Cd/usr/local/src/coreseek-4.1-beta/testpack
cat var/test/test.xml #此时应该正确显示中文
/usr/local/coreseek/bin/ Indexer-c etc/csft.conf–all #建立索引
/usr/local/coreseek/bin/search-c etc/csft.conf network Search #查找关键字

The above is a small set to introduce one of the Centos+php+coreseek+sphinx+mysql coreseek installation article, I hope to help you, if you have any questions please give me a message, small series will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.