第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

mac libicu-devel安裝

mac libicu-devel安裝

PHP
一只萌萌小番薯 2019-03-18 18:06:06
php安裝intl擴(kuò)展的時(shí)候報(bào)錯(cuò):configure: error: Unable to detect ICU prefix or no failed. Please verify ICU install prefix and make sure icu-config worksCentOS下直接執(zhí)行 yum -y install libicu-devel 即可然而 Mac下沒找到 libicu-devel ,而找到了 icu4cbrew install icu4c 之后,再次 configure intl 仍然報(bào)同樣的錯(cuò)誤求解,謝謝諸位
查看完整描述

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...

查看完整回答
反對(duì) 回復(fù) 2019-03-18
  • 2 回答
  • 0 關(guān)注
  • 1471 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)