zoukankan      html  css  js  c++  java
  • centos 安装 coreseek

    7、遇到问题:(这是遇到的问题,但需要第一步执行,于是提到了前面)

    xmlpipe2 support NOT compiled in. To use xmlpipe2, install missing XML libraries, reconfigure, and rebuild Sphinx

    coreseek安装需要预装的软件:

    yum install make gcc g++ gcc-c++ libtool autoconf automake imake mysql-devel libxml2-devel expat-devel

    1、coreseek 4.1 下载

    下载地址:http://www.coreseek.cn/news/14/52/

    2、原来残留下的coreseek

    rm -rf coreseek-4.1-beta 
    #-rf 递归、强制删除

    3、解压:

    tar -vxzf core-4.1-bete.tar.gz
    
    #解压后的文件夹core-4.1-beta包含cstf-4.1 mmseg-3.2.14 testpack readme.txt

    4、安装mmseg

    cd ~/coreseek-4.1-beta/mmseg-3.2.14/
    
    ./bootstrap
    
    ./configure --prefix=/usr/local/mmseg3
    
    make && make install

     配置显示(不要忘记make && make install):

    Configuration:
    
      Source code location:       .
      Compiler:                   gcc
      Compiler flags:             -g -O2
      Host System Type:           i686-redhat-linux-gnu
      Install path:               /usr/local/mmseg3
    
      See config.h for further configuration information.

    5、安装coreseek

    cd ~/coreseek-4.1-beta/csft-4.1/
    
    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-mysql
    
    #Thank you for choosing Sphinx ! 
    
    make && make install
    
    #看到 Thank you for choosing Sphinx ! 提示,一高兴就忘了make了,结果没找到coreseek还以为是系统原因

    6、测试mmseg分词

    cd ~/coreseek-4.1-beta/testpack/
    
    cat var/test/test.xml  #此时应该正确显示中文
    
    /usr/local/mmseg3/bin/mmseg -d /usr/local/mmseg3/etc var/test/test.xml
    
    /usr/local/coreseek/bin/indexer -c etc/csft.conf --all
    #显示using config file 'etc/csft.conf'...
    
    /usr/local/coreseek/bin/search -c etc/csft.conf 网络搜索
     #using config file 'etc/csft.conf'...
     #index 'xml': query '网络搜索 ': returned 1 matches of 1 total in 0.000 sec
    
     #displaying matches:
     #1. document=1, weight=1590, published=Thu Apr  1 22:20:07 2010, author_id=1
    
     #words:
     #1. '网络': 1 documents, 1 hits
     #2. '搜索': 2 documents, 5 hits

    参考:CoreSeek快速安装

    知识共享许可协议
    作品Tim Zhang创作,采用知识共享署名 3.0 中国大陆许可协议进行许可。 。
  • 相关阅读:
    2016——3——16 kmp 7题
    bzoj3942——2016——3——15
    bzoj1355——2016——3——15
    poj 3641 ——2016——3——15
    KMP之我见
    转自他人——————TLE之前,没有一个节点叫失败!!!
    省选必知
    bzoj1449————2016——3——14
    bzoj1070————2016——3——14
    bzoj1562[NOI2009]变换序列——2016——3——12
  • 原文地址:https://www.cnblogs.com/ccdc/p/2454522.html
Copyright © 2011-2022 走看看