【问题标题】:Install postgresql with Homebrew does not work用 Homebrew 安装 postgresql 不起作用
【发布时间】:2020-08-02 04:40:59
【问题描述】:

我尝试使用自制软件在我的 mac 书上安装 PostgreSQL。

brew install postgresql

但我无法安装它并收到这些错误消息。 有谁知道这个问题的解决方案是什么?

./formatted_string_builder.h:227:9: note: subexpression not valid in a constant expression
        U_ASSERT(category <= 0xf),
        ^
../common/uassert.h:35:26: note: expanded from macro 'U_ASSERT'
#   define U_ASSERT(exp) void()
                         ^
./formatted_string_builder.h:240:64: note: in call to 'Field(0, 1)'
constexpr FormattedStringBuilder::Field kGeneralNumericField = {UFIELD_CATEGORY_UNDEFINED, 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!


Error: You are using macOS 10.12.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you
experience while you are running this old version.

【问题讨论】:

  • 我也有这个问题。当我尝试运行命令时出现的另一个错误是“curl:(60) SSL 证书问题:无效的证书链更多详细信息:curl.haxx.se/docs/sslcerts.html”。你也明白了吗?
  • 到目前为止,我只有这个错误消息,不像“SSL 证书问题”。你能解决你的问题吗?

标签: postgresql homebrew


【解决方案1】:

需要icu4c,目前用Homebrew的Fomula编写的icu4c版本是67.1,macOS需要High Sierra (10.13)或更高版本。

【讨论】:

  • 感谢您的回答!我目前使用的是 Mac OS Sierra 10.12.6,所以我需要更新它。抱歉,我对 icu4c 不熟悉。这是否意味着我需要安装更新版本?
  • @user14035795 你只需要将你的mac os更新到10.13或更高版本
  • 其实我的mac os 升级到Catalina 之后,还是不能为我的rails 项目安装postgresql...(至少我可以安装postgresql)stackoverflow.com/questions/63893342/gem-install-pg-fails
猜你喜欢
  • 2012-11-12
  • 2021-07-30
  • 1970-01-01
  • 2015-10-01
  • 2016-02-11
  • 1970-01-01
  • 2023-03-09
  • 1970-01-01
  • 2020-01-11
相关资源
最近更新 更多