zoukankan      html  css  js  c++  java
  • coreseek安装使用

    1.下载

    1 官网已经打不开了,需要通过其它途径下载,可以参考如下: 
    3 https://pan.baidu.com/s/1MLsdXojcYb4nSfJJ5xuAsg 提取码:6qpa

    2.解压

    tar xf coreseek***.tar.gz

    3.安装mmseg

     1 cd /usr/local/src/coreseek/mmseg
     2 ./configure --prefix=/usr/local/mmseg ,
     3 发现报错”error: cannot find input file: src/Makefile.in“,不用着急,先执行命令”automake“,然后再执行./configure.......,
     4 如果还报错,那就执行以下命令:
     5 aclocal // 是一个perl 脚本程序,它的定义是:“aclocal - create aclocal.m4 by scanning configure.ac”
     6 libtoolize --force // 运行后有一个错误,不用管它。
     7 automake --add-missing
     8 autoconf
     9 autoheader
    10 make clean
    11 继续执行./configure......,没有出现错误了
    12 编译安装 make && make install
    13 完成!

    4.安装csft

    配置环境 
    ./configure 
    --prefix=/usr/local/coreseek
    --with-mysql=/usr/local/mysql8
    --with-mmseg=/usr/local/mmseg-3.2.14
    --with-mmseg-includes=/usr/local/mmseg-3.2.14/include/mmseg/
    --with-mmseg-libs=/usr/local/mmseg-3.2.14/lib/ 编译安装
    make
    && make install 这一步会出现错误 sphinxexpr.cpp:1080:43: note: use ‘this->ExprEval’ instead make[2]: *** [sphinxexpr.o] Error 1 make[2]: Leaving directory `/usr/local/src/coreseek-3.2.14/csft-3.2.14/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/usr/local/src/coreseek-3.2.14/csft-3.2.14/src' make: *** [all-recursive] Error 1 不要紧张,解决方法上面已经有提示,
    在sphinxexpr.cpp文件里面第1080行(会有好几行的),将”ExprEval“替换为”
    this->ExprEval“,
    然后从新./configure........,
    编译安装:make && make install
    开始配置 cd
    /usr/local/coreseek/etc cp sphinx-min.conf.dist csft.conf // 一定要命名为csft.conf,如何配置请参考我的文章,sphinx-2.1.9的安装使用

    5.测试

    cd /usr/local/coreseek
    建立索引 ./bin/indexer --all, 搜索中文 ./bin/search "你好"



  • 相关阅读:
    Python学习9——异常
    提取微信小游戏代码
    linux 命令记录
    cpp 线程传递参数
    c++ primer 记录1
    你不知道的js
    js中的对象 函数 原型
    C++ 获取时间
    linux 常见命令
    git 的基本命令
  • 原文地址:https://www.cnblogs.com/baikaishui-liang/p/10155910.html
Copyright © 2011-2022 走看看