我尝试按照以下步骤在 Mac 上升级 PHP 7,具体步骤请参考https://coolestguidesontheplanet.com/upgrade-php-on-osx/。使用如下命令:
curl -s http://php-osx.liip.ch/install.sh | bash -s 7.0
,然后得到以下结果:Detected OS X El Capitan 10.11. All ok.
Get packager.tgz
Unpack packager.tgz
Please type in your password, as we want to install this into /usr/local
Password:
Start packager (may take some time)
File "/usr/local/packager/packager.py", line 38
print "ERROR: Option %s is not valid for command %s\n" % (opt[0], command)
^
SyntaxError: invalid syntax