asdf-php: Can't install PHP 7 on macOS
When I try to install PHP 7 on macOS High Sierra after following the instructions in the README, I get the following error:
$ export PHP_CONFIGURE_OPTIONS='--disable-gettext'
$ PATH="$(brew --prefix bison)/bin:$(brew --prefix icu4c)/bin:$(brew --prefix icu4c)/sbin:$PATH" PHP_CONFIGURE_OPTIONS="--with-iconv=$(brew --prefix libiconv) --with-openssl=$(brew --prefix openssl)" asdf install php 7.2.1
...
/usr/local/Cellar/icu4c/60.2/include/unicode/unistr.h:3014:7: error: delegating constructors are permitted only in C++11
UnicodeString(ConstChar16Ptr(text)) {}
^~~~~~~~~~~~~
/usr/local/Cellar/icu4c/60.2/include/unicode/unistr.h:3076:7: error: delegating constructors are permitted only in C++11
UnicodeString(ConstChar16Ptr(text), length) {}
^~~~~~~~~~~~~
/usr/local/Cellar/icu4c/60.2/include/unicode/unistr.h:3169:7: error: delegating constructors are permitted only in C++11
UnicodeString(Char16Ptr(buffer), buffLength, buffCapacity) {}
^~~~~~~~~~~~~
12 warnings and 3 errors generated.
make: *** [ext/intl/intl_convertcpp.lo] Error 1
Any idea about what is going on?
After Googling around I could only find one related and unsolved issue: https://github.com/phpbrew/phpbrew/issues/899
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 28 (10 by maintainers)
@jeromedalbert try:
5.6
7.x
There are too many irrelevant people in the thread. If you need help, open a new post on discussions.
https://stackoverflow.com/questions/56364061/how-to-install-php-7-2-18-via-asdf-php-plugin-on-macos/56364194
Thanks @brunowego for your help!
@salzig Yes, that would be a good idea.
After running
PHP
8.0.6
succeeds.