問題描述在Mac上安裝php的sphinx擴展的依賴包libsphinxclient的時候,./configure 會報錯:onfigure: error: C++ preprocessor "/lib/cpp" fails sanity check,網上找的答案都是千篇一律的:yum install gcc-c++ ,可我是Mac系統啊,homebrew只有gcc的包,gcc-c++這個包找不到啊,brew里面沒有。。。請問我這個要怎么安裝呢?
1 回答

蝴蝶刀刀
TA貢獻1801條經驗 獲得超8個贊
安裝Xcode,會帶有clang++工具,或者嘗試下brew install clang++
更新--------------------------------------------------------------
試下
brew install homebrew/php/php56-sphinx 安裝php擴展,會自動安裝擴展依賴
- 1 回答
- 0 關注
- 2445 瀏覽
添加回答
舉報
0/150
提交
取消