ubuntu下Mysql+sphinx+中文分詞安裝配置

來源:互聯網
上載者:User

一、編譯先前條件

確認是否已經安裝以下軟體,有些也許不是必須的,但建議還是都裝上。

apt-get install autoconf automake autotools-dev cpp curl gawk gcc lftp libc6-dev linux-libc-dev make libpcre3-dev libpcrecpp0 g++ libtool libncurses5-dev

aptitude install libmysql++-dev libmysqlclient15-dev checkinstall

apt-get install python python-dev

二、安裝所需檔案

所需檔案清單

mmseg-0.7.3.tar.gz               中文分詞

mysql-5.1.26-rc.tar.gz             mysql-5.1.26原始碼

sphinx-0.9.8-rc2.tar.gz           sphinx-0.9.8-rc2原始碼

fix-crash-in-excerpts.patch         sphinx支援分詞補丁

sphinx-0.98rc2.zhcn-support.patch    sphinx支援分詞補丁

檔案可以到官方下載,附件中我將會提供該系列檔案。

三、開始安裝

先將以上檔案傳到 root目錄下

1、mmseg-0.7.3 安裝

先解壓安裝檔案 tar -zxvf mmseg-0.7.3.tar.gz

cd mmseg-0.7.3/

./configure

make

make install

cd ../

到此mmseg安裝完畢

可以嘗試 輸入mmseg 命令,看是否已經安裝成功

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.