sphinx php擴充套件安裝

2022-09-14 10:27:12 字數 839 閱讀 999

想玩下sphinx,感覺安裝也挺糾結的,廢話就不多說了^-^,安裝步驟如下:

2:上傳到linux解壓(tar -zxf filename),如果一上來就安裝phpsphinx,就會報錯:configure: error: cannot find libsphinxclient headers((/ □ \),鄙人就是這樣,臥槽),所以要先安裝libsphinxclient喔,cd sphinx/api/libsphinxclient,然後執行./configure,編譯安裝 make && make install;

3:好了,該安裝phpsphinx了,cd phpsphinx,是不是發現什麼裡面沒幾個檔案^-^,這個要用phpize命令安裝php擴充套件,如果沒有這個命令,就重新安裝php開發包(yum install -y php-devel,貌似這個我在安裝swoole已經說過,如果執行phpize過程中有出錯,請到這篇文章中看看執行phpize,然後執行./configure,之後編譯安裝 make && make install(記得在php.ini下加上那麼一行:extension=sphinx.so ^-^),重啟apache(service httpd restart),開啟phpinfo,是不是有sphinx擴充套件了(喔耶!);

4:安裝sphinx,還是一樣的鳥道理,./configure --prefix=/usr/local/sphinx --with-mysql=/usr/local/mysql(一般安裝第三方軟體都是放在這個目錄下,目錄如其名:usr=>unix software resoure),make && make install。

^-^,完了,是不是感覺挺容易的,鄙人在安裝時,就忘了安裝libsphinxclient,然後就在那裡糾結,蛋痛死了

Sphinx PHP使用Sphinx搜尋技術

sphinx繼承到php程式中,有兩種方式 sphinx php模組 編譯生成php擴充套件模組 sphinx api類 直接使用sphinx提供的類即可 首先我們應該使用sphinx做以下幾件事 1 建立mysql資料 2 配置sphinx的配置檔案 3 使用indexer根據sphinx的配置資...

redis php redis擴充套件 安裝

日期 2013 10 03 我是在centos 6.3 中進行的。使用到的軟體 redis 2.6.16 tcl php redis 擴充套件 phpredisadmin redis管理工具 首頁安裝tcl 如下 tcl安裝成功之後安裝redis服務 如下 安裝成功 啟動redis服務 如下 12 ...

php擴充套件安裝

以前以為php的擴充套件要重新編譯php,今天在群友的指點下知道可以像apache模組一樣動態擴充套件,以mcrypt舉例。進入要安裝的擴充套件的原始碼目錄 cd root php 5.2.6 ext mcrypt 執行phpize usr local php5 bin phpize ansi ro...