鍍金池/ 問(wèn)答/PHP  iOS  Linux/ mac 上從php5.6.30升級(jí)到7 遇到問(wèn)題怎么解決

mac 上從php5.6.30升級(jí)到7 遇到問(wèn)題怎么解決

想將php升級(jí)到7,通過(guò)https://php-osx.liip.ch/找到curl -s https://php-osx.liip.ch/insta... | bash -s 7.0, 但是在安裝時(shí)提示錯(cuò)誤,想問(wèn)怎么解決?
$curl -s https://php-osx.liip.ch/insta... | bash -s 7.0
Detected macOS Sierra 10.12. 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) using /usr/bin/python2.7
downloading https://s3-eu-west-1.amazonaw...
downloading https://s3-eu-west-1.amazonaw...
ERROR: pkg/info file not found in package 7.0-10.10-frontenddev
Finished.

ERROR: pkg/info file not found in package 7.0-10.10-frontenddev這個(gè)錯(cuò)誤怎么解決?

回答
編輯回答
舊螢火

建議使用 brew 來(lái)安裝。

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

隨后執(zhí)行

brew install php71

等待幾分鐘后就安裝成功了

2017年7月31日 09:04