我想在Ubuntu上安装zend框架,我按照安装说明从 http://framework.zend.com/manual/2.2/en/user-guide/skeleton-application.html 链接但未能安装。如何在Ubuntu上安装zend框架?
我从这里 https://github.com/zendframework/ZendSkeletonApplication
下载ZendSkeletonApplication此命令
php composer.phar self-update // it's working
的该运行后,但在第一个命令之后的第二个命令
php composer.phar install // Not working
,并显示此错误
Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- zendframework/zendframework 2.3.1 requires php >=5.3.23 -> no matching package found.
- zendframework/zendframework 2.3.0 requires php >=5.3.23 -> no matching package found.
- Installation request for zendframework/zendframework 2.3.* -> satisfiable by zendframework/zendframework[2.3.0, 2.3.1].
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.
更新一些意见后:
现在我已经下载了ZendSkeletonApplication主,并在
移动的ZendFramework-2.3.1的
库文件夹
ZendSkeletonApplication-maste R /供应商/ ZF2/
但在那之后,当我访问此我得到的页面上此错误
ZendSkeletonApplication主/公/ index.php文件//在浏览器中显示它我这个错误
Fatal error: Declaration of Zend\Stdlib\ArrayObject::offsetGet() must be compatible with that of ArrayAccess::offsetGet() in /var/www/html/demo/username/ZendSkeletonApplication -master/vendor/ZF2/library/Zend/Stdlib/ArrayObject.php on line 22
问题很明显:ZF2需要PHP版本5.3.23或更高版本,它应该安装在您的系统上。 php -v命令的输出是什么? – edigu
php-v的输出是: - 带Suhosin-Patch(cli)的PHP 5.3.10-1ubuntu3.11(内置:2014年4月4日01:27:23) Copyright(c)1997-2012 PHP Group Zend Engine v2.3.0,Copyright(c)1998-2012 Zend Technologies – user3611956
@ user3611956那么,你学到了什么? – Cully