Get the App
SLTechnology News&Howtos  ›  Development  › 

How to install coreseek

Shulou Source: shulou.com Published: 2022-06-03 20:09:56 11月12日 Update

Editor to share with you how to install coreseek, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

Preparatory work:

Yum install make gcc gathers + automake libtool MySQL-client libMySQLclient15-dev libxml2-dev libexpat1-dev autoconf automake libtool

Suppose we download the file package under / usr/local/src

Cd / usr/local/srctar zxvf coreseek-4.1-beta.tar.gzcd coreseek-4.1-beta

1. Install mmseg word Segmentation Module

Cd mmseg-3.2.14/./bootstrap./configure-prefix=/usr/local/mmseg3makemake install

two。 Install CoreSeek

Cd.. / csft-4.1/

First of all, solve the problems that will arise in advance:

A) modify the sphinxexpr.cpp file and change the T val = ExprEval (this- > m_pArg, tMatch) in the file to T val = this- > ExprEval (this- > m_pArg, tMatch). There are three places in total.

Vi src/sphinxexpr.cpp

B) modify the buildconf.sh file and add a line & & automake-- add-missing\ under & & aclocal\ to become

#! / bin/shautoheader\ & & aclocal\ & & automake-- add-missing\ & & automake-- foreign\ & & autoconf

C) modify the file MakeFile, look for LIBS, LIBS =-lm-lexpat-L/usr/local/lib change to LIBS =-lm-lexpat-liconv-L/usr/local/lib

Vi. / src/MakeFile/

Or

If you have done the. / configure operation before, modify the file configure, look for # define USE_LIBICONV 1 and change it to define USE_LIBICONV 0

D) modify the file configure.ac,AM_INIT_AUTOMAKE ([- Wall-Werror foreign]) to AM_INIT_AUTOMAKE ([- Wall foreign])

Add a line of AM_PROG_AR under AC_PROG_RANLIB

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-mysqlmakemake install

If there are any questions above, please leave a message for discussion. Thank you. My information is also integrated with online resources.

Test on the server side:

Cd / usr/local/src/coreseek-4.1-beta/testpackcat var/test/test.xml # should correctly display Chinese / usr/local/coreseek/bin/indexer-c etc/csft.conf-all # indexing / usr/local/coreseek/bin/search-c etc/csft.conf web search # find keywords above is all the content of the article "how to install coreseek", thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Documents articles one line content questions not so much information keywords keywords upfront most more modules knowledge indexes networks industries resources information information channels Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Docker Xiaomi Microsoft Linux