0

我被困在 Zend Framework 2 Getting Started guide的第一步。

我的步骤:

  • 我下载完将最新版本的composer解压到 c:/xampp/composer/composer.phar
  • 我跑php composer.phar self-update了以防万一。
  • 我按照指南中的说明跑步php composer.phar create-project --repository-url="http://packages.zendframework.com" zendframework/skeleton-application ../htdocs/zf2-tutorial

这是我收到此错误消息的地方:

Fatal error: Uncaught exception 'ErrorException' with message 'proc_open(): CreateProcess failed, error code - 0' in phar://C:/xampp/htdocs/ZendSkeletonApplication/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php on line 1013

我将在问题的末尾添加完整的调用堆栈。

我已经尝试过:

我的设置:

  • 视窗 8
  • PHP 5.4.4
  • 作曲者版本 d017e3f2096dda7194600a76bc7328808811c8da
  • 服务器版本:Apache/2.4.2 (Win32)

我的问题:

  • 有关如何解决此问题的任何建议?
  • 我可以在不使用 composer 的情况下安装 ZF2 吗?

Call Stack:
    0.0150     232360   1. {main}() C:\xampp\htdocs\ZendSkeletonApplication\composer.phar:0
    0.0155     231416   2. require('phar://C:/xampp/htdocs/ZendSkeletonApplication/composer.phar/bin/composer') C:\xampp\htdocs\ZendSkeletonApplication\composer.phar:15
    0.1072    2023984   3. Composer\Console\Application->run() phar://C:/xampp/htdocs/ZendSkeletonApplication/composer.phar/bin/composer:43
    0.1199    2234448   4. Symfony\Component\Console\Application->run() phar://C:/xampp/htdocs/ZendSkeletonApplication/composer.phar/src/Composer/Console/Application.php:83
    0.2064    3173376   5. Composer\Console\Application->renderException() phar://C:/xampp/htdocs/ZendSkeletonApplication/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:128
    0.2368    3201408   6. Symfony\Component\Console\Application->renderException() phar://C:/xampp/htdocs/ZendSkeletonApplication/composer.phar/src/Composer/Console/Application.php:163
    0.2369    3202256   7. Symfony\Component\Console\Application->getTerminalWidth() phar://C:/xampp/htdocs/ZendSkeletonApplication/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:731
    0.2369    3202272   8. Symfony\Component\Console\Application->getTerminalDimensions() phar://C:/xampp/htdocs/ZendSkeletonApplication/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:797
    0.2374    3202472   9. Symfony\Component\Console\Application->getConsoleMode() phar://C:/xampp/htdocs/ZendSkeletonApplication/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:827
    0.2374    3203768  10. proc_open() phar://C:/xampp/htdocs/ZendSkeletonApplication/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:1013
    0.2402    3204624  11. Composer\Util\ErrorHandler::handle() phar://C:/xampp/htdocs/ZendSkeletonApplication/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:1013
4

1 回答 1

0

令人惊讶的是,这比我想象的要容易得多:

git clone git://github.com/zendframework/ZendSkeletonApplication.git --recursive

它将框架安装在./vendor/ZF2/.

于 2013-08-19T16:46:00.560 回答