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.

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

报告相同问题?

悬赏问题

  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大