[英]Upgrading to PHP 5.6 on OSX
Im trying to run a command:我试图运行一个命令:
sudo php bin/magento indexer:reindex
Output:输出:
Magento supports PHP 5.6, 7.0.2, and 7.0.6 or later. Please read http://devdocs.magento.com/guides/v1.0/install-gde/system-requirements
Then i did:然后我做了:
curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6
That seemed to work.那似乎奏效了。
So i tried to run the command again.所以我尝试再次运行该命令。
Same error.同样的错误。
Then i did php -v然后我做了 php -v
Output:输出:
PHP 5.5.24 (cli) (built: May 19 2015 10:10:05)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
Then i tried installing again using:然后我尝试使用以下方法再次安装:
curl -s http://php-osx.liip.ch/install.sh | curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6\\
bash -s 5.6\\
Output:输出:
Already installed.已安装。
Im using osx yosemite我正在使用 osx 优胜美地
After installing php like this curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6
像这样安装php
curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6
curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6
I had to run export PATH=/usr/local/php5/bin:$PATH;
curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6
我必须运行export PATH=/usr/local/php5/bin:$PATH;
then it worked.然后它起作用了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.