【问题标题】:Issue installing icu4c 60 on OS X Lion在 OS X Lion 上安装 icu4c 60 时出现问题
【发布时间】:2018-06-04 18:05:14
【问题描述】:

我有一个较旧的 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 -参数 -Wno-括号-相等 -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-括号-相等 -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-括号-相等 -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: *** [all-recursive] 错误 2

我对这个有点茫然,我什至不知道从哪里开始。

【问题讨论】:

    标签: macos homebrew icu4c


    【解决方案1】:

    以防万一其他人在此运行,解决方案是安装 GCC,然后使用“brew install icu4c --cc=gcc-6”然后它就安装好了。

    【讨论】:

    • 如果其他人谈到这一点,重要的是要提到 Homebrew 项目并没有过多关注 OS X 的过去版本。MacPorts 的工作方式大致相同,并且支持更远,并且有一个它背后的优秀团队确保这些东西都能顺利安装和运行!
    • 这适用于 icu4c 67 brew install 失败的 OSX 10.12。我在运行brew install icu4c --cc=gcc-10 之前安装了gcc@10 并卸载了icu4c,因为选项--cc 显然只适用于install。像魅力一样工作。
    • @gemp 非常感谢。你救了我。虽然在我的 macbook pro 2012 上编译 gcc@10 需要 1 小时。但值得所有努力:)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-04-02
    • 1970-01-01
    • 2013-03-29
    • 1970-01-01
    相关资源
    最近更新 更多