2

I tried to install PostgreSQL on my mac book with homebrew.

brew install postgresql

But I couldn't install it and got these error messages. Does anyone know what is the solution for this issue?

./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.
2
  • I am also having this issue. Another error that appears for me when i try to run the command is "curl: (60) SSL certificate problem: Invalid certificate chain More details here: curl.haxx.se/docs/sslcerts.html". Are you getting that as well? Commented Aug 7, 2020 at 19:57
  • So far I have only this error message not like "SSL certificate problem". Could you solve your problem? Commented Aug 10, 2020 at 18:37

1 Answer 1

1

You need icu4c, The currently the version of icu4c written in Homebrew's Fomula is 67.1, and macOS is required to be High Sierra (10.13) or higher.

Sign up to request clarification or add additional context in comments.

3 Comments

Thank you for your answer! I am currently using Mac OS Sierra 10.12.6, so I need to update it. Sorry, I am not familiar with icu4c. Does it mean I need to install updated version?
@user14035795 u just need to update your mac os to 10.13 or higher
Actually, after I updated my mac os to Catalina, I still can't install postgresql for my rails project... (at least I could install postgresql) stackoverflow.com/questions/63893342/gem-install-pg-fails

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.