coreseek(sphinx+mmseg3),php下sphinx擴充安裝和php樣本

來源:互聯網
上載者:User

標籤:des   style   blog   http   color   os   io   strong   

搭建coreseek(sphinx+mmseg3)安裝[第一步] 先安裝mmseg3
 1     cd /root/install   2     wget http://www.coreseek.cn/uploads/csft/4.0/coreseek-4.1-beta.tar.gz   3     tar zxvf coreseek-4.1-beta.tar.gz   4        5     cd coreseek-4.1-beta   6     cd mmseg-3.2.14   7     ./bootstrap   8     ./configure --prefix=/server/mmseg3   9     make && make install  10       11     遇到的問題:  12     error: cannot find input file: src/Makefile.in  13     或者遇到其他類似error錯誤時...  14       15     解決方案:  16     依次執行下面的命令,我運行‘aclocal‘時又出現了錯誤,解決方案請看下文描述  17       18     yum -y install libtool  19       20     aclocal  21     libtoolize --force  22     automake --add-missing  23     autoconf  24     autoheader  25     make clean  

安裝好‘libtool‘繼續從‘aclocal‘開始執行上面提到的一串命令,執行完後再運行最開始的安裝流程即可。

[第二步] 安裝coreseek
 1     ##安裝coreseek   2     $ cd csft-3.2.14 或者 cd csft-4.0.1 或者 cd csft-4.1   3     $ sh buildconf.sh                                         #輸出的warning資訊可以忽略,如果出現error則需要解決   4     $ ./configure --prefix=/server/coreseek  --without-unixodbc --with-mmseg --with-mmseg-includes=/server/mmseg3/include/mmseg/ --with-mmseg-libs=/server/mmseg3/lib/ --with-mysql   5     ##如果提示mysql問題,可以查看MySQL資料來源安裝說明   http://www.coreseek.cn/product_install/install_on_bsd_linux/#mysql   6     $ make && make install   7     $ cd .. 9       10     ##命令列測試mmseg分詞,coreseek搜尋(需要預先設定好字元集為zh_CN.UTF-8,確保正確顯示中文)  11     $ cd /root/install/coreseek-4.1-beta/testpack  12     $ cat /root/install/coreseek-4.1-beta/testpack/var/test/test.xml    #此時應該正確顯示中文  13     $ /server/mmseg3/bin/mmseg -d /server/mmseg3/etc /root/install/coreseek-4.1-beta/testpack/var/test/test.xml
14 $ /server/coreseek/bin/indexer -c /root/install/coreseek-4.1-beta/testpack/etc/csft.conf --all #此時應該首先修改csft.conf裡的配置參數(否則會報錯)
15 $ /server/coreseek/bin/search -c /root/install/coreseek-4.1-beta/testpack/etc/csft.conf 網路搜尋

出現這個 xmlpipe2 support NOT compiled in. To use xmlpipe2, install missing XML libra  錯誤

執行以下命令:

[plain] view plaincopyprint?
  1. yum -y install expat expat-devel  


依次安裝後,從新編譯coreseek,然後再產生索引,就可以通過了。

結果如下:

 1     Coreseek Fulltext 4.1 [ Sphinx 2.0.2-dev (r2922)]     2     Copyright (c) 2007-2011,     3     Beijing Choice Software Technologies Inc (http://www.coreseek.com)     4         5     using config file ‘etc/csft.conf‘...     6     index ‘xml‘: query ‘網路搜尋 ‘: returned 1 matches of 1 total in 0.000 sec     7         8     displaying matches:     9     1. document=1, weight=1590, published=Thu Apr  1 07:20:07 2010, author_id=1    10        11     words:    12     1. ‘網路‘: 1 documents, 1 hits    13     2. ‘搜尋‘: 2 documents, 5 hits    

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.