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

  • 相关阅读:
    个人总结05
    微软拼音的用户体验
    个人总结04
    典型用户和用户场景模式
    个人总结03
    个人总结02
    构建之法阅读笔记06
    个人总结01
    学习进度条——第七周
    WebApi学习总结系列第五篇(消息处理管道)
  • 原文地址:https://www.cnblogs.com/dongruiha/p/7416688.html
Copyright © 2011-2022 走看看