brew install php@7.2
brew安装提示失败
Error: php@7.2 has been disabled because it is deprecated upstream!
原来是brew已经不支持7.2了,只有用其他办法来安装
brew tap shivammathur/php
brew install shivammathur/php/php@7.2
安装完成提示
The php.ini and php-fpm.ini file can be found in:
/usr/local/etc/php/7.2/
php@7.2 is keg-only, which means it was not symlinked into /usr/local,
because this is an alternate version of another formula.
If you need to have php@7.2 first in your PATH, run:
echo 'export PATH="/usr/local/opt/php@7.2/bin:$PATH"' >> ~/.zshrc
echo 'export PATH="/usr/local/opt/php@7.2/sbin:$PATH"' >> ~/.zshrc
For compilers to find php@7.2 you may need to set:
export LDFLAGS="-L/usr/local/opt/php@7.2/lib"
export CPPFLAGS="-I/usr/local/opt/php@7.2/include"
To restart shivammathur/php/php@7.2 after an upgrade:
brew services restart shivammathur/php/php@7.2
Or, if you don't want/need a background service you can just run:
/usr/local/opt/php@7.2/sbin/php-fpm --nodaemonize
————————————————
版权声明:本文为CSDN博主「fangdong88」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/fangdong88/article/details/125414034
根据上面提示启动即可