php - Installing Symfony2 -


i decided learn symfony tried install it. after getting composer said in website, executed following command create project , symfony2

composer create-project symfony/framework-standard-edition website/test

and unfortunately got message:

>    installing symfony/framework-standard-edition (v2.7.1)       - installing symfony/framework-standard-edition (v2.7.1)         downloading: 100%      ---   >    created project in website/test     loading composer repositories package information     installing dependencies (including require-dev) lock file     requirements not resolved installable set of packages.  **problem 1**   - installation request sensiolabs/security-checker v2.0.5 -> satisfiable sensiolabs/security-checker[v2.0.5].  - sensiolabs/security-checker v2.0.5 requires ext-curl * -> requested php extension curl missing system.  **problem 2**  - sensiolabs/security-checker v2.0.5 requires ext-curl * -> requested php extension curl missing system.  - sensio/distribution-bundle v4.0.0 requires sensiolabs/security-checker ~2.0 -> satisfiable sensiolabs/security-checker[v2.0.5].  - installation request sensio/distribution-bundle v4.0.0 -> satisfiable sensio/distribution-bundle[v4.0.0].  

the composer.json file :

{     "name": "symfony/framework-standard-edition",     "license": "mit",     "type": "project",     "description": "the \"symfony standard edition\" distribution",     "autoload": {         "psr-4": { "": "src/", "symfonystandard\\": "app/symfonystandard/" }     },     "require": {         "php": ">=5.3.9",         "symfony/symfony": "2.7.*",         "doctrine/orm": "~2.2,>=2.2.3,<2.5",         "doctrine/dbal": "<2.5",         "doctrine/doctrine-bundle": "~1.4",         "symfony/assetic-bundle": "~2.3",         "symfony/swiftmailer-bundle": "~2.3",         "symfony/monolog-bundle": "~2.4",         "sensio/distribution-bundle": "~4.0",         "sensio/framework-extra-bundle": "~3.0,>=3.0.2",         "incenteev/composer-parameter-handler": "~2.0"     },     "require-dev": {         "sensio/generator-bundle": "~2.3"     },     "scripts": {         "post-root-package-install": [             "symfonystandard\\composer::hookrootpackageinstall"         ],         "post-install-cmd": [             "incenteev\\parameterhandler\\scripthandler::buildparameters",             "sensio\\bundle\\distributionbundle\\composer\\scripthandler::buildbootstrap",             "sensio\\bundle\\distributionbundle\\composer\\scripthandler::clearcache",             "sensio\\bundle\\distributionbundle\\composer\\scripthandler::installassets",             "sensio\\bundle\\distributionbundle\\composer\\scripthandler::installrequirementsfile",             "sensio\\bundle\\distributionbundle\\composer\\scripthandler::removesymfonystandardfiles",             "sensio\\bundle\\distributionbundle\\composer\\scripthandler::preparedeploymenttarget"         ],         "post-update-cmd": [             "incenteev\\parameterhandler\\scripthandler::buildparameters",             "sensio\\bundle\\distributionbundle\\composer\\scripthandler::buildbootstrap",             "sensio\\bundle\\distributionbundle\\composer\\scripthandler::clearcache",             "sensio\\bundle\\distributionbundle\\composer\\scripthandler::installassets",             "sensio\\bundle\\distributionbundle\\composer\\scripthandler::installrequirementsfile",             "sensio\\bundle\\distributionbundle\\composer\\scripthandler::removesymfonystandardfiles",             "sensio\\bundle\\distributionbundle\\composer\\scripthandler::preparedeploymenttarget"         ]     },     "config": {         "bin-dir": "bin"     },     "extra": {         "symfony-app-dir": "app",         "symfony-web-dir": "web",         "symfony-assets-install": "relative",         "incenteev-parameters": {             "file": "app/config/parameters.yml"         },         "branch-alias": {             "dev-master": "2.7-dev"         }     } } 

and got php 5.5.9 version , ubuntu 14.04 os.

can explain me why i'm getting these errors , how solve them?

as per errors, problem don't have php curl extension installed.

in ubuntu, try following install packages

sudo apt-get install curl php5-curl

now try again.


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -