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

  • 相关阅读:
    day 66
    day 66 作业
    day 65 作业
    day 55 Ajax
    day 56 forms组件
    day 59
    day 58 cookie与session 中间件
    day 54
    day 53
    day 52
  • 原文地址:https://www.cnblogs.com/dongruiha/p/7416688.html
Copyright © 2011-2022 走看看