在 OS X Lion 上安装 icu4c 60 的问题
Issue installing icu4c 60 on OS X Lion
我有一个较旧的 Xserve 用作开发服务器,直到今天,brew 一直在很好地保持最新状态。不过我今天去升级icu4c却出现了下面的错误。
/Users/mav2287/Library/Logs/Homebrew/icu4c/02.make 的最后 15 行:
产生了 13 个错误。
* 失败的编译命令如下:------------------------------------ ------------------
clang++ -DU_ATTRIBUTE_DEPRECATED= -DU_COMMON_IMPLEMENTATION -DU_HAVE_ATOMIC=0 -DU_HAVE_STRTOD_L=1 -DU_HAVE_XLOCALE_H=1 -I. -DDEFAULT_ICU_PLUGINS="/usr/local/Cellar/icu4c/60.2/lib/icu" -O2 -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long -std=c++11 -Qunused-arguments -Wno-parentheses-equality -fvisibility=hidden -fno-common -c -MMD -MT cstr.d cstr.o cstr.ao -o cstr.ao cstr.cpp
---(用“/usr/bin/make VERBOSE=1 all”重建以显示所有参数)--------
编译失败的命令如下:------------------------------------ ----------------------
clang++ -DU_ATTRIBUTE_DEPRECATED= -DU_COMMON_IMPLEMENTATION -DU_HAVE_ATOMIC=0 -DU_HAVE_STRTOD_L=1 -DU_HAVE_XLOCALE_H=1 -I. -DDEFAULT_ICU_PLUGINS="/usr/local/Cellar/icu4c/60.2/lib/icu" -O2 -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long -std=c++11 -Qunused-arguments -Wno-parentheses-equality -fvisibility=hidden -fno-common -c -MMD -MT charstr.d charstr.o charstr.ao -o charstr.ao charstr.cpp
---(用“/usr/bin/make VERBOSE=1 all”重建以显示所有参数)--------
make[1]: [cstr.ao] 错误 1
make[1]: [charstr.ao] 错误 1
产生了 13 个错误。
编译失败命令如下:-------------------------------- ----------------------
clang++ -DU_ATTRIBUTE_DEPRECATED= -DU_COMMON_IMPLEMENTATION -DU_HAVE_ATOMIC=0 -DU_HAVE_STRTOD_L=1 -DU_HAVE_XLOCALE_H=1 -I. -DDEFAULT_ICU_PLUGINS="/usr/local/Cellar/icu4c/60.2/lib/icu" -O2 -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long -std=c++11 -Qunused-arguments -Wno-parentheses-equality -fvisibility=hidden -fno-common -c -MMD -MT udata.d udata.o udata.ao -o udata.ao udata.cpp
---(用“/usr/bin/make VERBOSE=1 all”重建以显示所有参数)--------
make[1]: * [udata.ao] 错误 1
make: *** [所有递归] 错误 2
我对此有点不知所措,甚至不知道从哪里开始。
以防万一其他人在此运行,解决方案是安装 GCC,然后使用 "brew install icu4c --cc=gcc-6" 然后安装就好了。
我有一个较旧的 Xserve 用作开发服务器,直到今天,brew 一直在很好地保持最新状态。不过我今天去升级icu4c却出现了下面的错误。
/Users/mav2287/Library/Logs/Homebrew/icu4c/02.make 的最后 15 行: 产生了 13 个错误。 * 失败的编译命令如下:------------------------------------ ------------------ clang++ -DU_ATTRIBUTE_DEPRECATED= -DU_COMMON_IMPLEMENTATION -DU_HAVE_ATOMIC=0 -DU_HAVE_STRTOD_L=1 -DU_HAVE_XLOCALE_H=1 -I. -DDEFAULT_ICU_PLUGINS="/usr/local/Cellar/icu4c/60.2/lib/icu" -O2 -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long -std=c++11 -Qunused-arguments -Wno-parentheses-equality -fvisibility=hidden -fno-common -c -MMD -MT cstr.d cstr.o cstr.ao -o cstr.ao cstr.cpp ---(用“/usr/bin/make VERBOSE=1 all”重建以显示所有参数)-------- 编译失败的命令如下:------------------------------------ ---------------------- clang++ -DU_ATTRIBUTE_DEPRECATED= -DU_COMMON_IMPLEMENTATION -DU_HAVE_ATOMIC=0 -DU_HAVE_STRTOD_L=1 -DU_HAVE_XLOCALE_H=1 -I. -DDEFAULT_ICU_PLUGINS="/usr/local/Cellar/icu4c/60.2/lib/icu" -O2 -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long -std=c++11 -Qunused-arguments -Wno-parentheses-equality -fvisibility=hidden -fno-common -c -MMD -MT charstr.d charstr.o charstr.ao -o charstr.ao charstr.cpp ---(用“/usr/bin/make VERBOSE=1 all”重建以显示所有参数)-------- make[1]: [cstr.ao] 错误 1 make[1]: [charstr.ao] 错误 1 产生了 13 个错误。 编译失败命令如下:-------------------------------- ---------------------- clang++ -DU_ATTRIBUTE_DEPRECATED= -DU_COMMON_IMPLEMENTATION -DU_HAVE_ATOMIC=0 -DU_HAVE_STRTOD_L=1 -DU_HAVE_XLOCALE_H=1 -I. -DDEFAULT_ICU_PLUGINS="/usr/local/Cellar/icu4c/60.2/lib/icu" -O2 -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long -std=c++11 -Qunused-arguments -Wno-parentheses-equality -fvisibility=hidden -fno-common -c -MMD -MT udata.d udata.o udata.ao -o udata.ao udata.cpp ---(用“/usr/bin/make VERBOSE=1 all”重建以显示所有参数)-------- make[1]: * [udata.ao] 错误 1 make: *** [所有递归] 错误 2
我对此有点不知所措,甚至不知道从哪里开始。
以防万一其他人在此运行,解决方案是安装 GCC,然后使用 "brew install icu4c --cc=gcc-6" 然后安装就好了。