HomePostsGithub

Using Multiple PHP Versions On MacOS

Install PHP

brew install php@7.4

Link & unlink PHP

brew unlink php@7.3
brew link php@7.4

Now PECL can use php7.4.

PHP can not find pcre2.h

ln /opt/homebrew/opt/pcre2/include/pcre2.h /opt/homebrew/Cellar/php@7.4/7.4.33_6/include/php/ext/pcre/
<-- Back to Posts

2023 © fuongz.