php symfony 安装,php – 安装Symfony2

我决定学习symfony所以我试着安装它.在获得像网站上所说的作曲家后,我执行了以下命令来创建一个项目并获得symfony2

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

不幸的是我得到了这个消息:

> 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 with package information

Installing dependencies (including require-dev) from lock file

Your requirements could not be resolved to an installable set of packages.

**Problem 1**

- Installation request for sensiolabs/security-checker v2.0.5 -> satisfiable by sensiolabs/security-checker[v2.0.5].

- sensiolabs/security-checker v2.0.5 requires ext-curl * -> the requested PHP extension curl is missing from your system.

**Problem 2**

- sensiolabs/security-checker v2.0.5 requires ext-curl * -> the requested PHP extension curl is missing from your system.

- sensio/distribution-bundle v4.0.0 requires sensiolabs/security-checker ~2.0 -> satisfiable by sensiolabs/security-checker[v2.0.5].

- Installation request for sensio/distribution-bundle v4.0.0 -> satisfiable by sensio/distribution-bundle[v4.0.0].

composer.json文件:

{

"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"

}

}

}

我得到了一个PHP 5.5.9版本和ubuntu 14.04作为操作系统.

有人可以向我解释为什么我会收到这些错误以及如何解决这些错误?

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值