Ê×Ïȸ½ÉÏcoreseek4.1°ae±¾ÏÂÔØ
Ç°ÆÚ×¼±¸¹¤×÷£º
yum install make gcc g++ automake libtool MySQL-client libMySQLclient15-dev libxml2-dev libexpat1-dev autoconf automake libtool
¼ÙÉeÎÒÃǽ«Îļþ°uÏÂÔØÔÚ /usr/local/srcÏÂ
cd /usr/local/src
tar zxvf coreseek-4.1-beta.tar.gz
cd coreseek-4.1-beta
*1.°²×°mmsegÖ´ÊÄ£¿e
**
cd mmseg-3.2.14/./bootstrap./configure --prefix=/usr/local/mmseg3makemake install
2.°²×°CoreSeek
cd ../csft-4.1/
Ê×ÏÈÌaÇ°½a¾oºoÃae»a³oÏÖµÄÎÊÌa£º
¡¡¡¡a)ÐÞ¸Äsphinxexpr.cppÎļþ,½«ÎļþÖеÄT val = ExprEval ( this->m_pArg, tMatch ) ¶¼ÐÞ¸ÄΪ T val = this->ExprEval ( this->m_pArg, tMatch ),×ܹ²ÓÐÈý´¦
vi src/sphinxexpr.cpp
¡¡¡¡b)ÐÞ¸Äbuildconf.shÎļþ,ÔÚ&& aclocal \ÏÂÌi¼ÓÒ»ÐÐ && automake --add-missing \£¬¼´±a³É
#! /bin/sh
autoheader \
&& aclocal \
&& automake --add-missing \
&& automake --foreign \
&& autoconf
¡¡¡¡c)ÐÞ¸ÄÎļþMakeFile£¬²eÕÒLIBS, LIBS = -lm -lexpat -L/usr/local/lib ÐÞ¸ÄΪ LIBS = -lm -lexpat -liconv -L/usr/local/lib
vi ./src/MakeFile/
¡¡¡¡»oÕß
¡¡¡¡ÔÚÄa֮ǰÈç¹uÒѾ½øÐйý./configure ²Ù×÷ʱ£¬ÐÞ¸ÄÎļþconfigureÖУ¬²eÕÒ #define USE_LIBICONV 1 ÐÞ¸ÄΪ define USE_LIBICONV 0
¡¡¡¡d)ÐÞ¸ÄÎļþconfigure.ac,AM_INIT_AUTOMAKE([-Wall -Werror foreign])¸ÄΪ AM_INIT_AUTOMAKE([-Wall foreign])
¡¡¡¡¡¡¡¡AC_PROG_RANLIB ÏÂÌi¼ÓÒ»ÐÐ AM_PROG_AR
È»ºoÔËÐÐ
sh buildconf.sh
./configure ¨Cprefix=/usr/local/coreseek ¨Cwithout-unixodbc ¨Cwith-mmseg ¨Cwith-mmseg-includes=/usr/local/mmseg3/include/mmseg/ ¨Cwith-mmseg-libs=/usr/local/mmseg3/lib/ ¨Cwith-mysql
make
make install
Èç¹uÒÔÉÏ»¹ÓÐÎÊÌa£¬ÇeÁoÑÔ̽ÌÖ£¬Ð»Ð»£¬ÎÒµÄÐÅÏ¢Ò²ÊÇÕuºÏÁËÍøÉϵÄ×ÊÔ´
ÔÚ*þÎñ¶Ë½øÐвaÊÔ£º
cd /usr/local/src/coreseek-4.1-beta/testpack
cat var/test/test.xml #´ËʱӦ¸ÃÕýÈ*ÏÔʾÖÐÎÄ
/usr/local/coreseek/bin/indexer -c etc/csft.conf ¨Call #½¨Á¢Ë÷Òý
/usr/local/coreseek/bin/search -c etc/csft.conf ÍøÂçËÑË÷ #²eÕҹؼu×Ö
ÒÔÉÏËuÊoÊÇС±a¸ø´o¼Ò½eÉܵÄcentos+php+coreseek+sphinx+mysqlÖ®Ò»coreseek°²×°Æª£¬Ï£Íu¶Ô´o¼ÒÓÐËu°iÖu£¬Èç¹u´o¼ÒÓÐÈκÎÒÉÎÊÇe¸øÎÒÁoÑÔ£¬Ð¡±a»a¼°Ê±»Ø¸´´o¼ÒµÄ¡£ÔÚ´ËÒ²*dz£¸Ðл´o¼Ò¶Ô½Å±¾Ö®¼ÒÍøÕ¾µÄÖ§³Ö£¡
Copyright© 2013-2020
All Rights Reserved 京ICP备2023019179号-8