我想在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