如何解决macOS 10.12升级到icu4c 67.1失败
我使用的是较旧的iMac,无法将macOS升级到10.12以上。 当我冲煮升级fontforge时,它在升级的fontforge依赖项icu4c上失败。以下是部分日志。
Google搜索没有返回太多信息,任何人都有类似的问题并且知道如何解决它?
==> Installing fontforge dependency: icu4c
==> ./configure --prefix=/usr/local/Cellar/icu4c/67.1 --disable-samples --disable-tests --enable-static --with-library-bits=64
==> make
Last 15 lines from /Users/erickung/Library/Logs/Homebrew/icu4c/02.make:
*** Failed compilation command follows: ----------------------------------------------------------
clang++ -DU_ATTRIBUTE_DEPRECATED= -DU_I18N_IMPLEMENTATION -DU_HAVE_STRTOD_L=1 -DU_HAVE_XLOCALE_H=1 -DU_HAVE_STRING_VIEW=1 -I. -I../common -O2 -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long -std=c++11 -Qunused-arguments -Wno-parentheses-equality -Wglobal-constructors -fvisibility=hidden -fno-common -c -MMD -MT msgfmt.d msgfmt.o msgfmt.ao -o msgfmt.ao msgfmt.cpp
--- ( rebuild with "/Library/Developer/CommandLinetools/usr/bin/make VERBOSE=1 all" to show all parameters ) --------
make[1]: *** [msgfmt.ao] Error 1
3 errors generated.
*** Failed compilation command follows: ----------------------------------------------------------
clang++ -DU_ATTRIBUTE_DEPRECATED= -DU_I18N_IMPLEMENTATION -DU_HAVE_STRTOD_L=1 -DU_HAVE_XLOCALE_H=1 -DU_HAVE_STRING_VIEW=1 -I. -I../common -O2 -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long -std=c++11 -Qunused-arguments -Wno-parentheses-equality -Wglobal-constructors -fvisibility=hidden -fno-common -c -MMD -MT decimfmt.d decimfmt.o decimfmt.ao -o decimfmt.ao decimfmt.cpp
--- ( rebuild with "/Library/Developer/CommandLinetools/usr/bin/make VERBOSE=1 all" to show all parameters ) --------
make[1]: *** [decimfmt.ao] Error 1
3 errors generated.
*** Failed compilation command follows: ----------------------------------------------------------
clang++ -DU_ATTRIBUTE_DEPRECATED= -DU_I18N_IMPLEMENTATION -DU_HAVE_STRTOD_L=1 -DU_HAVE_XLOCALE_H=1 -DU_HAVE_STRING_VIEW=1 -I. -I../common -O2 -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long -std=c++11 -Qunused-arguments -Wno-parentheses-equality -Wglobal-constructors -fvisibility=hidden -fno-common -c -MMD -MT numfmt.d numfmt.o numfmt.ao -o numfmt.ao numfmt.cpp
--- ( rebuild with "/Library/Developer/CommandLinetools/usr/bin/make VERBOSE=1 all" to show all parameters ) --------
make[1]: *** [numfmt.ao] Error 1
make: *** [all-recursive] Error 2
Do not report this issue to Homebrew/brew or Homebrew/core!
These open issues may also help:
icu4c 67.1 (make C++14 compatible) https://github.com/Homebrew/homebrew-core/pull/59540
解决方法
好吧,似乎有一个为此lib提供更新公式的分支:https://github.com/dotysan/homebrew-core/tree/icu4c-cplusplus14,我能够安装它来克隆该分支(您实际上只能下载所需的公式),并明确将brew指向该版本:
git clone https://github.com/dotysan/homebrew-core/
cd homebrew-core/
git checkout -b icu4c-cplusplus14 origin/icu4c-cplusplus14
brew reinstall --build-from-source ./Formula/icu4c.rb
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。