鍍金池/ 問答/PHP  iOS  Linux/ mac 上從php5.6.30升級到7 遇到問題怎么解決

mac 上從php5.6.30升級到7 遇到問題怎么解決

想將php升級到7,通過https://php-osx.liip.ch/找到curl -s https://php-osx.liip.ch/insta... | bash -s 7.0, 但是在安裝時提示錯誤,想問怎么解決?
$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這個錯誤怎么解決?

回答
編輯回答
舊螢火

建議使用 brew 來安裝。

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

隨后執(zhí)行

brew install php71

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

2017年7月31日 09:04