PHP 8.3.1 MacOS
Opened this issue ยท 4 comments
I've take a look on README and was necessary to install different packages to have PHP 8.3.1 on MacOS. Maybe on install scrips we can have a list of packages to be installed on each PHP version. For me was only necessary to install libiconv
re2c
and bison
.
I needed openssl@1.1
on MacOS Sonoma. #163 describes the openssl requirement.
#145 (comment) describes the ones you were mentioning, including libiconv
, bison
and re2c
. I also needed pkg-config
. I just installed those as you mentioned, and it worked fine.
@drewbitt 's suggestion also worked for me. Thanks a lot, btw!
@drewbitt 's suggestion worked for me too, but before I was trying to install php 8.3.0.
It worked when I tried with 8.3.1
try brew install argon2 aspell libunistring libidn2 libnghttp2 openldap rtmpdump curl unixodbc freetds jpeg-turbo libavif gd krb5 libpq libzip tidy-html5 re2c libiconv pkg-config
add .bashrc or .zshrc
export PATH="/opt/homebrew/opt/bison/bin:$PATH"
export PATH="/opt/homebrew/opt/curl/bin:$PATH"
export PATH="/opt/homebrew/opt/openldap/bin:$PATH"
export PATH="/opt/homebrew/opt/openldap/sbin:$PATH"
export PATH="/opt/homebrew/opt/krb5/bin:$PATH"
export PATH="/opt/homebrew/opt/krb5/sbin:$PATH"
export PATH="/opt/homebrew/opt/libpq/bin:$PATH"
export PATH="/opt/homebrew/opt/libiconv/bin:$PATH"