Installing symfony gives fatal error

I am new to symfony2 and I followed http://symfony.com/doc/current/book/installation.html for installation using Composer now

This gives me Fatal Error after a while:

monolog / monolog offers to install roll / shaft (allow sending log messages to Rollbar)

Write Lock File

Creating startup files

Fatal error: Call to undefined method Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::defineDirectoryStructure()in /Users/app/SymfonyStandard/RootPackageInstallSubscriber.phpon line 28

+4
source share
7 answers

@hap is absolutely right on Debian / Ubuntu

sudo apt-get install php5-curl

solves this problem. I think on another platform php5-curl will help too.

+3
source

RESOLVED:

. composer.phar, curl -s https://getcomposer.org/installer | php -

/path/to/webroot/project/vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/ScriptHandler.php defineDirectoryStructure()

symfony/framework-standard-edition (v2.6.1)

PHP 5.5.9-1ubuntu4.5 (cli) (built: Oct 29 2014 11:59:10)

sensio/distribution-bundle (v3.0.11)

@hap, sudo apt-get install php5-curl

+2

Debian. , / (v3.0.12, defineDirectoryStructure) cURL PHP, , v3.0.11 ( ).

php5-curl Composer sensio/distribution-bundle, .

+1

... debian, wamp Windows 7!

, wamp, PHP5.5, PHP, .

:

" create-project symfony/framework-standard-edition sfproject/"

, .... , , !! ... ;)

0

. composer.json "symfony/symfony": "2.3. *", .

, composer.phar composer.lock.

, symfony 2.3 โ€‹โ€‹ v 2.7.

0

vagrant VM, , - , 2.6.0 , .

, , 2.6x 2.5x , 2.3x 2.4x .

- , , , ..

composer create-project symfony/framework-standard-edition . 2.4.x

VM: Ubuntu 14.01/PHP 5.5.9

0

Ubuntu 14.04 VM, PuPHPet Vagrant/VirtualBox.

, , DistributionBundle . composer.json( 3.0.12, , , ), , , php5-curl.

PuPHPet, cURL PHP , Symfony , Sensio Distribution, defineDirectoryStructure().

0

All Articles