phpenv
感想
macOSでPHPを複数バージョン扱うのは面倒なのでDocker使ったほうがいい 2022-09-22
PHP 7.2をmacOS Montereyに入れようとしたら入らなかった
code:zsh
-----------------
| BUILD ERROR |
-----------------
Here are the last 10 lines from the log:
-----------------------------------------
grep: invalid option -- P
configure: WARNING: This bison version is not supported for regeneration of the Zend/PHP parsers (found: 2.3, min: 204, excluded: ).
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
configure: error: Cannot find OpenSSL's <evp.h>
-----------------------------------------
php7.3をmacOSに入れようとした
3.6.2
code:_
configure: WARNING: This bison version is not supported for regeneration of the Zend/PHP parsers (found: 2.3, min: 204, excluded: ).
configure: error: Cannot find OpenSSL's <evp.h>
brew install libxml2
# 再度インストール
configure: error: Cannot find zlib
bisonのバージョンが高すぎる
code:_
$ brew link bison@2.7 --force
Linking /usr/local/Cellar/bison@2.7/2.7.1_1... 8 symlinks created
If you need to have this software first in your PATH instead consider running:
echo 'export PATH="/usr/local/opt/bison@2.7/bin:$PATH"' >> ~/.zshrc