2016-09-09 4 views
2

私はhttps://coolestguidesontheplanet.com/upgrade-php-on-osx/のMacでPHP 7にアップグレードする手順に従おうとしていました。MacでPHP 7にアップグレード

私は、このコマンドを使用: 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 

答えて

4

自作の使用を>http://brew.sh/

その後

を実行することによってPHP7をインストール /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

を実行して、自作をインストールします。完了したら

brew install homebrew/php/php70

、あなたの.bashrcまたは.zshrcファイルにexport PATH="$(brew --prefix homebrew/php/php70)/bin:$PATH"を追加します。

関連する問題