天天看點

全文搜尋 xunsearch 項目中重複安裝踩坑 failed to configure xunsearch 、configure: error

1.安裝xunsearch

參照官方文檔:

http://www.xunsearch.com/doc/php/guide/start.installation
全文搜尋 xunsearch 項目中重複安裝踩坑 failed to configure xunsearch 、configure: error

2.踩坑

如果是第一次 安裝,是沒有任何問題,如果是重複安裝,請注意安裝的目錄,不要在原目錄下安裝。
全文搜尋 xunsearch 項目中重複安裝踩坑 failed to configure xunsearch 、configure: error

官方的這個提示有個坑,那就是在原目錄下安裝會報錯,比如原本目錄是在/usr/local/xxx,把項目遷移到新伺服器後,再次在/usr/local/xxx中安裝會提示報錯:

configure: error: Invalid xapian library, maybe not do the patch with scws?.

-----

ERROR: failed to configure xunsearch, see 'setup.log' for more detail

全文搜尋 xunsearch 項目中重複安裝踩坑 failed to configure xunsearch 、configure: error

而如果你執行了以下指令:

yum install gcc-c++ libstdc++-devel bzip2 zlib-devel

卻依然得不到解決的時候,請注意,更換一個目錄,很重要!更換新目錄安裝成功。

全文搜尋 xunsearch 項目中重複安裝踩坑 failed to configure xunsearch 、configure: error
全文搜尋 xunsearch 項目中重複安裝踩坑 failed to configure xunsearch 、configure: error

繼續閱讀