您的位置:首页 > 运维架构 > Linux

sphinx(coreseek)在linux上的安装

2015-12-08 22:32 471 查看
sphinx的版本为coreseek-3.2.14

1,安装mysql,mysql我使用的是mysql-5.1.51,安装配置如下:

./configure --prefix=/home/lu.wei/local/mysql --with-extra-charsets=all --with-charset=utf8 --enable-thread-safe-client --enable-local-infile --with-unix-socket-path=/tmp/mysql.sock

make && make install

安装mysql需要一定的时间

2,安装autoconf

可能先查看系统是否已安装:

autoconf -h

Usage: /usr/local/bin/autoconf [OPTION]... [TEMPLATE-FILE]

Generate a configuration script from a TEMPLATE-FILE if given, or

`configure.ac' if present, or else `configure.in'.  Output is sent

to the standard output if TEMPLATE-FILE is given, else into

`configure'.

Operation modes:

  -h, --help                print this help, then exit

  -V, --version             print version number, then exit

  -v, --verbose             verbosely report processing

  -d, --debug               don't remove temporary files

  -f, --force               consider all files obsolete

  -o, --output=FILE         save output in FILE (stdout is the default)

  -W, --warnings=CATEGORY   report the warnings falling in CATEGORY [syntax]

....

则说明是安装了,

如果没有,可以:

cd autoconf-2.69

./configure && make && make install
如果没有安装sutoconf,那在安装时会出现下面的错:

aclocal.m4:20: warning: this file was generated for autoconf 2.64.

You have another version of autoconf.  It may work, but is not guaranteed to.

If you have problems, you may need to regenerate the build system entirely.

To do so, use the procedure documented by the package, typically `autoreconf'.

configure.ac:13: error: Autoconf version 2.62 or higher is required

aclocal.m4:518: AM_INIT_AUTOMAKE is expanded from...

configure.ac:13: the top level

autom4te: /usr/bin/m4 failed with exit status: 63

autoheader: /usr/bin/autom4te failed with exit status: 63

3,安装coreseek里的mmseg
cd mmseg-3.2.14

./bootstrap

./configure --prefix=/usr/local/mmseg3

make&& make install

4,安装coreseek里的csft

# cd /csft-3.2.14

# sh buildconf.sh

然后使用./configure --prefix=/home/lu.wei/local/coreseek/ --with-unixodbc --with-mmseg --with-mmseg-includes=/home/lu.wei/local/mmseg3/include/mmseg/ --with-mmseg-libs=/home/lu.wei/local/mmseg3/lib/ --with-mysql

出了一个错:

******************************************************************************

ERROR: cannot find MySQL include files.

Check that you do have MySQL include files installed.

The package name is typically 'mysql-devel'.

If include files are installed on your system, but you are still getting

this message, you should do one of the following:

1) either specify includes location explicitly, using --with-mysql-includes;

2) or specify MySQL installation root location explicitly, using --with-mysql;

3) or make sure that the path to 'mysql_config' program is listed in

   your PATH environment variable.

To disable MySQL support, use --without-mysql option.

******************************************************************************

应该是没有找到安装的mysql

那么指定一下安装路径之类:

./configure --prefix=/home/lu.wei/local/coreseek/ --with-unixodbc --with-mmseg --with-mmseg-includes=/home/lu.wei/local/mmseg3/include/mmseg/ --with-mmseg-libs=/home/lu.wei/local/mmseg3/lib/ --with-mysql=/home/lu.wei/local/mysql/ --with-mysql-includes=/home/lu.wei/local/mysql/include/mysql/
--with-mysql-libs=/home/lu.wei/local/mysql/lib/mysql/

接着就安装成功了,呵呵……
5,最后

make && make install

这是输出的信息:

[root@172.16.171.148 csft-3.2.14]# make && make install

Making all in src

make[1]: Entering directory `/home/lu.wei/coreseek-3.2.14/csft-3.2.14/src'

/bin/sh svnxrev.sh ..

make  all-am

make[2]: Entering directory `/home/lu.wei/coreseek-3.2.14/csft-3.2.14/src'

if g++ -DHAVE_CONFIG_H -I. -I. -I../config  -DSYSCONFDIR="\"/home/lu.wei/local/coreseek//etc\"" -I/usr/local/include -I/home/lu.wei/local/mysql/include/mysql/  -I/home/lu.wei/local/mmseg3/include/mmseg/   -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -MT sphinx.o
-MD -MP -MF ".deps/sphinx.Tpo" -c -o sphinx.o sphinx.cpp; \

    then mv -f ".deps/sphinx.Tpo" ".deps/sphinx.Po"; else rm -f ".deps/sphinx.Tpo"; exit 1; fi

sphinx_internal.h:36: 警告:‘class ISphIndexBuilder’ 有虚函数却没有虚析构函数

/home/lu.wei/local/mmseg3/include/mmseg/mmthunk.h: In member function ‘u2 css::ChunkQueue::getToken()’:

/home/lu.wei/local/mmseg3/include/mmseg/mmthunk.h:143: 警告:在有符号和无符号整数表达式间比较

/home/lu.wei/local/mmseg3/include/mmseg/mmthunk.h:161: 警告:在有符号和无符号整数表达式间比较

sphinx.cpp: In member function ‘virtual void CSphIndex_VLN::DebugDumpDocids(FILE*)’:

sphinx.cpp:15267: 警告:格式 ‘%d’ 需要类型 ‘int’,但实参 3 的类型为 ‘long unsigned int’

if g++ -DHAVE_CONFIG_H -I. -I. -I../config  -DSYSCONFDIR="\"/home/lu.wei/local/coreseek//etc\"" -I/usr/local/include -I/home/lu.wei/local/mysql/include/mysql/  -I/home/lu.wei/local/mmseg3/include/mmseg/   -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -MT sphinxexcerpt.o
-MD -MP -MF ".deps/sphinxexcerpt.Tpo" -c -o sphinxexcerpt.o sphinxexcerpt.cpp; \

    then mv -f ".deps/sphinxexcerpt.Tpo" ".deps/sphinxexcerpt.Po"; else rm -f ".deps/sphinxexcerpt.Tpo"; exit 1; fi

if g++ -DHAVE_CONFIG_H -I. -I. -I../config  -DSYSCONFDIR="\"/home/lu.wei/local/coreseek//etc\"" -I/usr/local/include -I/home/lu.wei/local/mysql/include/mysql/  -I/home/lu.wei/local/mmseg3/include/mmseg/   -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -MT sphinxquery.o
-MD -MP -MF ".deps/sphinxquery.Tpo" -c -o sphinxquery.o sphinxquery.cpp; \

    then mv -f ".deps/sphinxquery.Tpo" ".deps/sphinxquery.Po"; else rm -f ".deps/sphinxquery.Tpo"; exit 1; fi

if g++ -DHAVE_CONFIG_H -I. -I. -I../config  -DSYSCONFDIR="\"/home/lu.wei/local/coreseek//etc\"" -I/usr/local/include -I/home/lu.wei/local/mysql/include/mysql/  -I/home/lu.wei/local/mmseg3/include/mmseg/   -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -MT sphinxsoundex.o
-MD -MP -MF ".deps/sphinxsoundex.Tpo" -c -o sphinxsoundex.o sphinxsoundex.cpp; \

    then mv -f ".deps/sphinxsoundex.Tpo" ".deps/sphinxsoundex.Po"; else rm -f ".deps/sphinxsoundex.Tpo"; exit 1; fi

if g++ -DHAVE_CONFIG_H -I. -I. -I../config  -DSYSCONFDIR="\"/home/lu.wei/local/coreseek//etc\"" -I/usr/local/include -I/home/lu.wei/local/mysql/include/mysql/  -I/home/lu.wei/local/mmseg3/include/mmseg/   -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -MT sphinxmetaphone.o
-MD -MP -MF ".deps/sphinxmetaphone.Tpo" -c -o sphinxmetaphone.o sphinxmetaphone.cpp; \

    then mv -f ".deps/sphinxmetaphone.Tpo" ".deps/sphinxmetaphone.Po"; else rm -f ".deps/sphinxmetaphone.Tpo"; exit 1; fi

if g++ -DHAVE_CONFIG_H -I. -I. -I../config  -DSYSCONFDIR="\"/home/lu.wei/local/coreseek//etc\"" -I/usr/local/include -I/home/lu.wei/local/mysql/include/mysql/  -I/home/lu.wei/local/mmseg3/include/mmseg/   -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -MT sphinxstemen.o
-MD -MP -MF ".deps/sphinxstemen.Tpo" -c -o sphinxstemen.o sphinxstemen.cpp; \

    then mv -f ".deps/sphinxstemen.Tpo" ".deps/sphinxstemen.Po"; else rm -f ".deps/sphinxstemen.Tpo"; exit 1; fi

if g++ -DHAVE_CONFIG_H -I. -I. -I../config  -DSYSCONFDIR="\"/home/lu.wei/local/coreseek//etc\"" -I/usr/local/include -I/home/lu.wei/local/mysql/include/mysql/  -I/home/lu.wei/local/mmseg3/include/mmseg/   -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -MT sphinxstemru.o
-MD -MP -MF ".deps/sphinxstemru.Tpo" -c -o sphinxstemru.o sphinxstemru.cpp; \

    then mv -f ".deps/sphinxstemru.Tpo" ".deps/sphinxstemru.Po"; else rm -f ".deps/sphinxstemru.Tpo"; exit 1; fi

if g++ -DHAVE_CONFIG_H -I. -I. -I../config  -DSYSCONFDIR="\"/home/lu.wei/local/coreseek//etc\"" -I/usr/local/include -I/home/lu.wei/local/mysql/include/mysql/  -I/home/lu.wei/local/mmseg3/include/mmseg/   -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -MT sphinxstemcz.o
-MD -MP -MF ".deps/sphinxstemcz.Tpo" -c -o sphinxstemcz.o sphinxstemcz.cpp; \

    then mv -f ".deps/sphinxstemcz.Tpo" ".deps/sphinxstemcz.Po"; else rm -f ".deps/sphinxstemcz.Tpo"; exit 1; fi

if g++ -DHAVE_CONFIG_H -I. -I. -I../config  -DSYSCONFDIR="\"/home/lu.wei/local/coreseek//etc\"" -I/usr/local/include -I/home/lu.wei/local/mysql/include/mysql/  -I/home/lu.wei/local/mmseg3/include/mmseg/   -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -MT sphinxutils.o
-MD -MP -MF ".deps/sphinxutils.Tpo" -c -o sphinxutils.o sphinxutils.cpp; \

    then mv -f ".deps/sphinxutils.Tpo" ".deps/sphinxutils.Po"; else rm -f ".deps/sphinxutils.Tpo"; exit 1; fi

if g++ -DHAVE_CONFIG_H -I. -I. -I../config  -DSYSCONFDIR="\"/home/lu.wei/local/coreseek//etc\"" -I/usr/local/include -I/home/lu.wei/local/mysql/include/mysql/  -I/home/lu.wei/local/mmseg3/include/mmseg/   -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -MT md5.o
-MD -MP -MF ".deps/md5.Tpo" -c -o md5.o md5.cpp; \

    then mv -f ".deps/md5.Tpo" ".deps/md5.Po"; else rm -f ".deps/md5.Tpo"; exit 1; fi

if g++ -DHAVE_CONFIG_H -I. -I. -I../config  -DSYSCONFDIR="\"/home/lu.wei/local/coreseek//etc\"" -I/usr/local/include -I/home/lu.wei/local/mysql/include/mysql/  -I/home/lu.wei/local/mmseg3/include/mmseg/ 
e837
  -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -MT sphinxstd.o
-MD -MP -MF ".deps/sphinxstd.Tpo" -c -o sphinxstd.o sphinxstd.cpp; \

    then mv -f ".deps/sphinxstd.Tpo" ".deps/sphinxstd.Po"; else rm -f ".deps/sphinxstd.Tpo"; exit 1; fi

if g++ -DHAVE_CONFIG_H -I. -I. -I../config  -DSYSCONFDIR="\"/home/lu.wei/local/coreseek//etc\"" -I/usr/local/include -I/home/lu.wei/local/mysql/include/mysql/  -I/home/lu.wei/local/mmseg3/include/mmseg/   -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -MT sphinxsort.o
-MD -MP -MF ".deps/sphinxsort.Tpo" -c -o sphinxsort.o sphinxsort.cpp; \

    then mv -f ".deps/sphinxsort.Tpo" ".deps/sphinxsort.Po"; else rm -f ".deps/sphinxsort.Tpo"; exit 1; fi

if g++ -DHAVE_CONFIG_H -I. -I. -I../config  -DSYSCONFDIR="\"/home/lu.wei/local/coreseek//etc\"" -I/usr/local/include -I/home/lu.wei/local/mysql/include/mysql/  -I/home/lu.wei/local/mmseg3/include/mmseg/   -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -MT sphinxexpr.o
-MD -MP -MF ".deps/sphinxexpr.Tpo" -c -o sphinxexpr.o sphinxexpr.cpp; \

    then mv -f ".deps/sphinxexpr.Tpo" ".deps/sphinxexpr.Po"; else rm -f ".deps/sphinxexpr.Tpo"; exit 1; fi

if g++ -DHAVE_CONFIG_H -I. -I. -I../config  -DSYSCONFDIR="\"/home/lu.wei/local/coreseek//etc\"" -I/usr/local/include -I/home/lu.wei/local/mysql/include/mysql/  -I/home/lu.wei/local/mmseg3/include/mmseg/   -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -MT sphinxfilter.o
-MD -MP -MF ".deps/sphinxfilter.Tpo" -c -o sphinxfilter.o sphinxfilter.cpp; \

    then mv -f ".deps/sphinxfilter.Tpo" ".deps/sphinxfilter.Po"; else rm -f ".deps/sphinxfilter.Tpo"; exit 1; fi

if g++ -DHAVE_CONFIG_H -I. -I. -I../config  -DSYSCONFDIR="\"/home/lu.wei/local/coreseek//etc\"" -I/usr/local/include -I/home/lu.wei/local/mysql/include/mysql/  -I/home/lu.wei/local/mmseg3/include/mmseg/   -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -MT tokenizer_zhcn.o
-MD -MP -MF ".deps/tokenizer_zhcn.Tpo" -c -o tokenizer_zhcn.o tokenizer_zhcn.cpp; \

    then mv -f ".deps/tokenizer_zhcn.Tpo" ".deps/tokenizer_zhcn.Po"; else rm -f ".deps/tokenizer_zhcn.Tpo"; exit 1; fi

/home/lu.wei/local/mmseg3/include/mmseg/mmthunk.h: In member function ‘u2 css::ChunkQueue::getToken()’:

/home/lu.wei/local/mmseg3/include/mmseg/mmthunk.h:143: 警告:在有符号和无符号整数表达式间比较

/home/lu.wei/local/mmseg3/include/mmseg/mmthunk.h:161: 警告:在有符号和无符号整数表达式间比较

rm -f libsphinx.a

ar cru libsphinx.a sphinx.o sphinxexcerpt.o sphinxquery.o sphinxsoundex.o sphinxmetaphone.o sphinxstemen.o sphinxstemru.o sphinxstemcz.o sphinxutils.o md5.o sphinxstd.o sphinxsort.o sphinxexpr.o sphinxfilter.o tokenizer_zhcn.o  

ranlib libsphinx.a

if g++ -DHAVE_CONFIG_H -I. -I. -I../config  -DSYSCONFDIR="\"/home/lu.wei/local/coreseek//etc\"" -I/usr/local/include -I/home/lu.wei/local/mysql/include/mysql/  -I/home/lu.wei/local/mmseg3/include/mmseg/   -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -MT indexer.o
-MD -MP -MF ".deps/indexer.Tpo" -c -o indexer.o indexer.cpp; \

    then mv -f ".deps/indexer.Tpo" ".deps/indexer.Po"; else rm -f ".deps/indexer.Tpo"; exit 1; fi

g++  -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG   -o indexer  indexer.o libsphinx.a  -L/home/lu.wei/local/mysql/lib/mysql/ -lmysqlclient -lz  -L/home/lu.wei/local/mmseg3/lib/ -lmmseg  -lodbc -lm -lz -lexpat  -L/usr/local/lib -lrt  -lpthread

if g++ -DHAVE_CONFIG_H -I. -I. -I../config  -DSYSCONFDIR="\"/home/lu.wei/local/coreseek//etc\"" -I/usr/local/include -I/home/lu.wei/local/mysql/include/mysql/  -I/home/lu.wei/local/mmseg3/include/mmseg/   -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -MT searchd.o
-MD -MP -MF ".deps/searchd.Tpo" -c -o searchd.o searchd.cpp; \

    then mv -f ".deps/searchd.Tpo" ".deps/searchd.Po"; else rm -f ".deps/searchd.Tpo"; exit 1; fi

searchd.cpp: In function ‘int ServiceMain(int, char**)’:

searchd.cpp:7906: 警告:未使用的变量 ‘hPython’

g++  -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG   -o searchd  searchd.o libsphinx.a  -L/home/lu.wei/local/mysql/lib/mysql/ -lmysqlclient -lz  -L/home/lu.wei/local/mmseg3/lib/ -lmmseg  -lodbc -lm -lz -lexpat  -L/usr/local/lib -lrt  -lpthread

if g++ -DHAVE_CONFIG_H -I. -I. -I../config  -DSYSCONFDIR="\"/home/lu.wei/local/coreseek//etc\"" -I/usr/local/include -I/home/lu.wei/local/mysql/include/mysql/  -I/home/lu.wei/local/mmseg3/include/mmseg/   -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -MT search.o
-MD -MP -MF ".deps/search.Tpo" -c -o search.o search.cpp; \

    then mv -f ".deps/search.Tpo" ".deps/search.Po"; else rm -f ".deps/search.Tpo"; exit 1; fi

search.cpp: In function ‘int main(int, char**)’:

search.cpp:192: 警告:未使用的变量 ‘hPython’

g++  -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG   -o search  search.o libsphinx.a  -L/home/lu.wei/local/mysql/lib/mysql/ -lmysqlclient -lz  -L/home/lu.wei/local/mmseg3/lib/ -lmmseg  -lodbc -lm -lz -lexpat  -L/usr/local/lib -lrt  -lpthread

if g++ -DHAVE_CONFIG_H -I. -I. -I../config  -DSYSCONFDIR="\"/home/lu.wei/local/coreseek//etc\"" -I/usr/local/include -I/home/lu.wei/local/mysql/include/mysql/  -I/home/lu.wei/local/mmseg3/include/mmseg/   -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -MT spelldump.o
-MD -MP -MF ".deps/spelldump.Tpo" -c -o spelldump.o spelldump.cpp; \

    then mv -f ".deps/spelldump.Tpo" ".deps/spelldump.Po"; else rm -f ".deps/spelldump.Tpo"; exit 1; fi

g++  -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG   -o spelldump  spelldump.o libsphinx.a  -L/home/lu.wei/local/mysql/lib/mysql/ -lmysqlclient -lz  -L/home/lu.wei/local/mmseg3/lib/ -lmmseg  -lodbc -lm -lz -lexpat  -L/usr/local/lib -lrt  -lpthread

if g++ -DHAVE_CONFIG_H -I. -I. -I../config  -DSYSCONFDIR="\"/home/lu.wei/local/coreseek//etc\"" -I/usr/local/include -I/home/lu.wei/local/mysql/include/mysql/  -I/home/lu.wei/local/mmseg3/include/mmseg/   -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -MT indextool.o
-MD -MP -MF ".deps/indextool.Tpo" -c -o indextool.o indextool.cpp; \

    then mv -f ".deps/indextool.Tpo" ".deps/indextool.Po"; else rm -f ".deps/indextool.Tpo"; exit 1; fi

g++  -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG   -o indextool  indextool.o libsphinx.a  -L/home/lu.wei/local/mysql/lib/mysql/ -lmysqlclient -lz  -L/home/lu.wei/local/mmseg3/lib/ -lmmseg  -lodbc -lm -lz -lexpat  -L/usr/local/lib -lrt  -lpthread

if g++ -DHAVE_CONFIG_H -I. -I. -I../config  -DSYSCONFDIR="\"/home/lu.wei/local/coreseek//etc\"" -I/usr/local/include -I/home/lu.wei/local/mysql/include/mysql/  -I/home/lu.wei/local/mmseg3/include/mmseg/   -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -MT tests.o
-MD -MP -MF ".deps/tests.Tpo" -c -o tests.o tests.cpp; \

    then mv -f ".deps/tests.Tpo" ".deps/tests.Po"; else rm -f ".deps/tests.Tpo"; exit 1; fi

g++  -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG   -o tests  tests.o libsphinx.a  -L/home/lu.wei/local/mysql/lib/mysql/ -lmysqlclient -lz  -L/home/lu.wei/local/mmseg3/lib/ -lmmseg  -lodbc -lm -lz -lexpat  -L/usr/local/lib -lrt  -lpthread

make[2]: Leaving directory `/home/lu.wei/coreseek-3.2.14/csft-3.2.14/src'

make[1]: Leaving directory `/home/lu.wei/coreseek-3.2.14/csft-3.2.14/src'

Making all in test

make[1]: Entering directory `/home/lu.wei/coreseek-3.2.14/csft-3.2.14/test'

make[1]: Nothing to be done for `all'.

make[1]: Leaving directory `/home/lu.wei/coreseek-3.2.14/csft-3.2.14/test'

make[1]: Entering directory `/home/lu.wei/coreseek-3.2.14/csft-3.2.14'

make[1]: Nothing to be done for `all-am'.

make[1]: Leaving directory `/home/lu.wei/coreseek-3.2.14/csft-3.2.14'

Making install in src

make[1]: Entering directory `/home/lu.wei/coreseek-3.2.14/csft-3.2.14/src'

/bin/sh svnxrev.sh ..

make  install-am

make[2]: Entering directory `/home/lu.wei/coreseek-3.2.14/csft-3.2.14/src'

make[3]: Entering directory `/home/lu.wei/coreseek-3.2.14/csft-3.2.14/src'

test -z "/home/lu.wei/local/coreseek//bin" || mkdir -p -- "/home/lu.wei/local/coreseek//bin"

  /usr/bin/install -c 'indexer' '/home/lu.wei/local/coreseek//bin/indexer'

  /usr/bin/install -c 'searchd' '/home/lu.wei/local/coreseek//bin/searchd'

  /usr/bin/install -c 'search' '/home/lu.wei/local/coreseek//bin/search'

  /usr/bin/install -c 'spelldump' '/home/lu.wei/local/coreseek//bin/spelldump'

  /usr/bin/install -c 'indextool' '/home/lu.wei/local/coreseek//bin/indextool'

make[3]: Nothing to be done for `install-data-am'.

make[3]: Leaving directory `/home/lu.wei/coreseek-3.2.14/csft-3.2.14/src'

make[2]: Leaving directory `/home/lu.wei/coreseek-3.2.14/csft-3.2.14/src'

make[1]: Leaving directory `/home/lu.wei/coreseek-3.2.14/csft-3.2.14/src'

Making install in test

make[1]: Entering directory `/home/lu.wei/coreseek-3.2.14/csft-3.2.14/test'

make[1]: Nothing to be done for `install'.

make[1]: Leaving directory `/home/lu.wei/coreseek-3.2.14/csft-3.2.14/test'

make[1]: Entering directory `/home/lu.wei/coreseek-3.2.14/csft-3.2.14'

make[2]: Entering directory `/home/lu.wei/coreseek-3.2.14/csft-3.2.14'

test -z "/home/lu.wei/local/coreseek//etc" || mkdir -p -- "/home/lu.wei/local/coreseek//etc"

 /usr/bin/install -c -m 644 'sphinx.conf.dist' '/home/lu.wei/local/coreseek//etc/sphinx.conf.dist'

 /usr/bin/install -c -m 644 'sphinx-min.conf.dist' '/home/lu.wei/local/coreseek//etc/sphinx-min.conf.dist'

 /usr/bin/install -c -m 644 'example.sql' '/home/lu.wei/local/coreseek//etc/example.sql'

make  install-data-hook

make[3]: Entering directory `/home/lu.wei/coreseek-3.2.14/csft-3.2.14'

mkdir -p /home/lu.wei/local/coreseek//var/data && mkdir -p /home/lu.wei/local/coreseek//var/log

make[3]: Leaving directory `/home/lu.wei/coreseek-3.2.14/csft-3.2.14'

make[2]: Leaving directory `/home/lu.wei/coreseek-3.2.14/csft-3.2.14'

make[1]: Leaving directory `/home/lu.wei/coreseek-3.2.14/csft-3.2.14'

[root@172.16.171.148 csft-3.2.14]#

启动时出错:

/home/lu.wei/local/coreseek/bin/searchd -c /home/lu.wei/local/coreseek/etc/sphinx.conf

/home/lu.wei/local/coreseek/bin/searchd: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory

在查看刚安装的mysql目录下libmysqlclient.so.16这个文件是存在的

于是建立一个soft link

ln -s /home/lu.wei/local/mysql/lib/mysql/libmysqlclient.so.16 /usr/lib/libmysqlclient.so.16

结果试了下,依然出现这个问题,对linux不了解,就是容易出问题,重新建一个link(在/usr/lib64下)

ln -s /home/lu.wei/local/mysql/lib/mysql/libmysqlclient.so.16 /usr/lib64/libmysqlclient.so.16

这下就没问题了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: