安装wget命令
yum -y install wget
下载coreseek包
wget http://www.coreseek.cn/uploads/csft/3.2/coreseek-3.2.14.tar.gz
解压coreseek
tar xzvf coreseek-3.2.14.tar.gz
安装依赖包
yum install make gcc g++ gcc-c++ libtool autoconf automake imake mysql-devel libxml2-devel expat-devel m4
安装msseg分词包
cd mmseg-3.2.14
./bootstrap #输出的warning信息可以忽略,如果出现error则需要解决
./configure --prefix=/usr/local/mmseg3
编译
make && make install
回到上一级目录安装coreseek
cd csft-3.2.14
执行shell脚本
sh buildconf.sh
加载一些脚本
./configure --prefix=/usr/local/coreseek --without-python --without-unixodbc --with-mmseg --with-mmseg-includes=/usr/local/mmseg3/include/mmseg/ --with-mmseg-libs=/usr/local/mmseg3/lib/ --with-mysql
make
make install
make时会出现一个错误
sphinxexpr.cpp:1013:43: 错误:‘ExprEval’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
[出现上边错误修改以下文件]
{
vi src/sphinxexpr.cpp
查找
/ExprEval N 切换到下一个
T val = ExprEval ( this->m_pArg, tMatch ); // 'this' fixes gcc braindamage
修改为
T val = this->ExprEval ( this->m_pArg, tMatch ); // 'this' fixes gcc braindamage
共修改三个地方
}
修改完重新执行 make && make install
到此我们的sphinx就安装完毕了
关闭linux 防火墙
systemctl stop firewalld
## 首先./configure,然后vim config/config.h
## 在其中搜索USE_LIBICONV,将其后的1修改为0
## 然后再次make && make install
yum -y install wget
下载coreseek包
wget http://www.coreseek.cn/uploads/csft/3.2/coreseek-3.2.14.tar.gz
解压coreseek
tar xzvf coreseek-3.2.14.tar.gz
安装依赖包
yum install make gcc g++ gcc-c++ libtool autoconf automake imake mysql-devel libxml2-devel expat-devel m4
安装msseg分词包
cd mmseg-3.2.14
./bootstrap #输出的warning信息可以忽略,如果出现error则需要解决
./configure --prefix=/usr/local/mmseg3
编译
make && make install
回到上一级目录安装coreseek
cd csft-3.2.14
执行shell脚本
sh buildconf.sh
加载一些脚本
./configure --prefix=/usr/local/coreseek --without-python --without-unixodbc --with-mmseg --with-mmseg-includes=/usr/local/mmseg3/include/mmseg/ --with-mmseg-libs=/usr/local/mmseg3/lib/ --with-mysql
make
make install
make时会出现一个错误
sphinxexpr.cpp:1013:43: 错误:‘ExprEval’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
[出现上边错误修改以下文件]
{
vi src/sphinxexpr.cpp
查找
/ExprEval N 切换到下一个
T val = ExprEval ( this->m_pArg, tMatch ); // 'this' fixes gcc braindamage
修改为
T val = this->ExprEval ( this->m_pArg, tMatch ); // 'this' fixes gcc braindamage
共修改三个地方
}
修改完重新执行 make && make install
到此我们的sphinx就安装完毕了
关闭linux 防火墙
systemctl stop firewalld
## 首先./configure,然后vim config/config.h
## 在其中搜索USE_LIBICONV,将其后的1修改为0
## 然后再次make && make install