dpd46554
2015-06-13 14:16
浏览 125
已采纳

Symfony2在安装过程中失败

I am trying to use Symfony2 with a local wamp server. I used

php -r "readfile('http://symfony.com/installer');" > symfony

I moved the symfony file to C:\wamp\www\test.

And

php symfony
php symfony new myProject

But this message appear

Warning: include(phar://C:/wamp/www/Symfony/symfony/vendor/symfony/process/Symfo
ny/Component/Process/ProcessUtils.php): failed to open stream: phar error: Canno
t open phar archive "C:/wamp/www/Symfony/symfony" for reading in phar://C:/wamp/
www/Symfony/symfony/vendor/composer/ClassLoader.php on line 412

The line 412 is

function includeFile($file)
{
    include $file;
}

Why did I have an error during the installation ? I did not perform any other actions except following the instructions on the official website.

  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • douzhuanqian8244 2015-06-13 14:31
    已采纳

    Why don't you use composer?The composer make more than "symfony" command file.

    已采纳该答案
    打赏 评论

相关推荐 更多相似问题