2 回答

TA貢獻(xiàn)2003條經(jīng)驗(yàn) 獲得超2個(gè)贊
安裝 intl 擴(kuò)展報(bào)錯(cuò):
configure: error: Unable to detect ICU prefix or no failed. Please verify ICU install prefix and make sure icu-config works
CentOS解決方案:yum -y install libicu-devel
接著繼續(xù)安裝
mac解決方案:
brew install icu4c(僅僅安裝這個(gè),configure的時(shí)候依然報(bào)同樣的錯(cuò)誤)
brew link icu4c --force
make的時(shí)候報(bào)錯(cuò)
In file included from ./intl_convertcpp.h:26:
/usr/local/Cellar/icu4c/59.1/include/unicode/unistr.h:3025:7: error: delegating constructors are permitted only in C++11
UnicodeString(ConstChar16Ptr(text)) {}
^~~~~~~~~~~~~
/usr/local/Cellar/icu4c/59.1/include/unicode/unistr.h:3087:7: error: delegating constructors are permitted only in C++11
UnicodeString(ConstChar16Ptr(text), length) {}
^~~~~~~~~~~~~
/usr/local/Cellar/icu4c/59.1/include/unicode/unistr.h:3180:7: error: delegating constructors are permitted only in C++11
UnicodeString(Char16Ptr(buffer), buffLength, buffCapacity) {}
···
make: *** [intl_convertcpp.lo] Error 1
解決方案:
打開 /Applications/NMP/src/php-7.1.3/ext/intl/Makefile
搜索 CXXFLAGS = -g -O2 行并添加 -std = c ++ 11
CXX = g++
CXXFLAGS = -g -O2 -std=c++11
CXXFLAGS_CLEAN = $(CXXFLAGS)
重新make,如果修改文件之后,make clean 剛才修改的會(huì)被重置
參考:
https://stackoverflow.com/que...
https://gist.github.com/redef...
- 2 回答
- 0 關(guān)注
- 1471 瀏覽
添加回答
舉報(bào)