zoukankan      html  css  js  c++  java
  • coreseek(sphinx) 全文检索

    转自:

    http://blog.csdn.net/aidandai/article/details/50464793

    编译错误解决--sphinx-0.9.9

    I tried to install the newest stable 0.9.9 version but got some errors when I tried to
    install the libsphinxclient.

    Here are the commands I used to install libsphinxclient and before this I successful
    installed sphinx:
    cd /path/to/sphinx/src/api/libsphinxclient/
    sudo sh /path/to/sphinx/src/api/libsphinxclient/.buildconf.sh
    sudo ./configure
    sudo make
    sudo make install

    But when I used "sudo make" I got this error:
    sphinxclient.c:1216: error: static declaration of ‘sock_close’ follows non-static
    declaration
    sphinxclient.c:280: note: previous declaration of ‘sock_close’ was here

    So I checked the file.

    On line: 280
    void sock_close ( int sock );

    On line: 1216
    static void sock_close ( int sock )
    {
    #if _WIN32
            closesocket ( sock );
    #else
            close ( sock );
    #endif
    }

    I changed the line 280 to:
    static void sock_close ( int sock );

    Then I could compile it without any errors.

    http://sphinxsearch.com/forum/view.html?id=4801

  • 相关阅读:
    6.8
    6.7
    6.2
    6.1儿童节
    5.24
    5.22
    5.18
    5.17
    Visual Studio开始一个HelloWorld的enclave程序
    以太坊MPT树的HP(Hex-Prefix)编码
  • 原文地址:https://www.cnblogs.com/dongruiha/p/7416688.html
Copyright © 2011-2022 走看看