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

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.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?