我已经尝试了在我的 Mac 上升级我的 PHP 的所有解决方案,现在遵循本教程:http: //php-osx.liip.ch/。我还在 ~/.profile 中编写了 export PATH=/usr/local/php5/bin:$PATH。
现在它看起来像这样:
# MacPorts Installer addition on 2012-10-24_at_12:03:59: adding an appropriate PATH variable for use with MacPorts.
#export PATH=/opt/local/bin:/opt/local/sbin:$PATH
export PATH=/usr/local/php5/bin:$PATH
# Finished adapting your PATH environment variable for use with MacPorts.
但是当我执行“php -v”时,它仍然显示:
PHP 5.3.15 with Suhosin-Patch (cli) (built: Jul 31 2012 14:49:18)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
什么时候应该说
PHP 5.5.0 (cli) (built: Jun 21 2013 13:11:59)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.5.0-dev, Copyright (c) 1998-2013 Zend Technologies
with Xdebug v2.2.2, Copyright (c) 2002-2013, by Derick Rethans
请帮忙,我已经尝试了一切。