在OSX上升级到PHP 5.6

时间:2016-09-29 14:01:36

标签: php macos

我试图运行一个命令:

 sudo php bin/magento indexer:reindex

输出:

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

然后我做了:

curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6

这似乎有效。

所以我试着再次运行命令。

同样的错误。

然后我做了php -v

输出:

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

然后我尝试使用以下方法重新安装:

curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6 \

输出:

已安装。

我正在使用osx yosemite

1 个答案:

答案 0 :(得分:1)

在安装这样的export PATH=/usr/local/php5/bin:$PATH;之后,我必须运行observable.Timeout然后才能运行。

相关问题