|
|
MacOS升级到最新版,原来安装的PHP 7.2因动态库原因无法继续使用。尝试卸载重装,brew输出如下错误提示:, T6 c; d& ~; ~+ R" Z
php@7.2 has been disabled because it is deprecated upstream!又一次感慨阿三慢慢接管硅谷后,苹果微软等大厂的软件质量越来越不靠谱啊!无法新安装也就算了,怎么搞得原来好好的也用不了了?!!
) O% o3 P0 c3 j4 d3 |, V8 U但是某个项目仍依赖于PHP 7.2版本,没办法只能通过第三方brew源安装了:# L5 G2 @7 q: h: l
brew tap shivammathur/php
$ H, e! t5 Y! M8 x& V+ G6 Cbrew install shivammathur/php/php@7.2
1 `. ^" i. m. T. s6 ^' w参考1. How to install PHP 7.2 on macOS Big Sur using Homebrew?
7 F e. [+ j) U) ~2. 使用Remi源安装最新版PHP 7和PHP 8# Q9 g% o2 d0 G8 m/ s7 s, O O
AD:【国外VPS推荐】 Vultr全球16个数据中心,高速SSD硬盘,月付2.5$起,注册充10$送100$打赏赞 |
|