This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

an error occurred when installing symfony 2 via composer

Discuss installing Symfony 2 here

an error occurred when installing symfony 2 via composer

by barbaris » Thu Mar 13, 2014 3:11 pm

I have latest varsion of composer, php 5.4.26, Windows 7.
When i try to install Symfony 2 with command
Code: Select all
php composer.phar create-project symfony/framework-standard-edition path/ 2.4.2

i get Symfony files in folder but an error occured

Code: Select all
Generating autoload files
Updating the "app/config/parameters.yml" file
Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap handling the post-install-cmd event terminated with an exception



  [RuntimeException]
  An error occurred when generating the bootstrap file.



Exception trace:
 () at C:\WebServers\home\ArtTimer.com\vendor\sensio\distribution-bundle\Sensio\Bundle\DistributionBundle\Composer\ScriptHandler.php:203
 Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::executeBuildBootstrap() at C:\WebServers\home\ArtTimer.com\vendor\sensio\distribution-bundle\Sensio\Bu
ndle\DistributionBundle\Composer\ScriptHandler.php:43
 Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap() at phar://D:/bin/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:161
 Composer\EventDispatcher\EventDispatcher->executeEventPhpScript() at phar://D:/bin/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:134
 Composer\EventDispatcher\EventDispatcher->doDispatch() at phar://D:/bin/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:103
 Composer\EventDispatcher\EventDispatcher->dispatchCommandEvent() at phar://D:/bin/composer.phar/src/Composer/Installer.php:299
 Composer\Installer->run() at phar://D:/bin/composer.phar/src/Composer/Command/InstallCommand.php:122
 Composer\Command\InstallCommand->execute() at phar://D:/bin/composer.phar/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:241
 Symfony\Component\Console\Command\Command->run() at phar://D:/bin/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:892
 Symfony\Component\Console\Application->doRunCommand() at phar://D:/bin/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:191
 Symfony\Component\Console\Application->doRun() at phar://D:/bin/composer.phar/src/Composer/Console/Application.php:117
 Composer\Console\Application->doRun() at phar://D:/bin/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:121
 Symfony\Component\Console\Application->run() at phar://D:/bin/composer.phar/src/Composer/Console/Application.php:83
 Composer\Console\Application->run() at phar://D:/bin/composer.phar/bin/composer:43
 require() at D:\bin\composer.phar:15


How to install Symfony via composer normally?
barbaris
Junior Member
 
Posts: 3
Joined: Thu Mar 13, 2014 3:00 pm

Re: an error occurred when installing symfony 2 via composer

by nymo » Fri Mar 14, 2014 10:14 am

That's the correct way. You should have now a composer.json file in your root path. If yes then try to run the following composer install --optimize-autoloader
nymo
Senior Member
 
Posts: 174
Joined: Fri Jan 07, 2011 11:37 pm
Location: Germany