cuốn sách gpt4 ai đã làm

php - Cài đặt Symfony2

In lại Tác giả: Hồ Xil Thời gian cập nhật: 2023-11-01 13:17:30 hai mươi bốn 4
mua khóa gpt4 Nike

Tôi quyết định học symfony nên đã thử cài đặt nó. Sau khi nhận được trình soạn thảo như trang web đã nói, tôi thực hiện các lệnh sau để tạo dự án và nhận symfony2

nhà soạn nhạc tạo dự án symfony/framework-standard-edition Trang web/kiểm tra

Thật không may tôi nhận được một tin nhắn:

> Cài đặt symfony/framework-standard-edition (v2.7.1) - Cài đặt symfony/framework-standard-edition (v2.7.1) Đang tải xuống: 100% ---> Đã tạo dự án trong Trang web/thử nghiệm Đang tải kho soạn thảo với thông tin gói Cài đặt phụ thuộc (bao gồm require-dev) từ tệp khóa Không thể giải quyết các yêu cầu của bạn thành một bộ gói có thể cài đặt được.**Vấn đề 1**- Yêu cầu cài đặt cho sensiolabs/security-checker v2.0.5 -> đáp ứng được sensiolabs/security-checker[v2.0.5].- sensiolabs/security-checker v2.0.5 yêu cầu ext-curl * -> thiếu phần mở rộng PHP được yêu cầu trong hệ thống của bạn. **Vấn đề 2**- sensiolabs/security-checker v2.0.5 yêu cầu ext-curl * -> Thiếu phần mở rộng PHP đã yêu cầu trong hệ thống của bạn.- sensio/distribution-bundle v4.0.0 yêu cầu sensiolabs/security-checker ~2.0 -> có thể được đáp ứng bởi sensiolabs/security-checker[v2.0.5].- Yêu cầu cài đặt cho sensio/distribution- gói v4.0.0 -> thỏa mãn bởi Sensio/distribution-bundle[v4.0.0].

Tệp soạn nhạc.json:

{
"name": "symfony/framework-standard-edition",
"giấy phép": "MIT",
"loại": "dự án",
"description": "Bản phân phối \"Symfony Standard Edition\"",
"tự động tải": {
"psr-4": { "": "src/", "SymfonyStandard\\": "app/SymfonyStandard/" }
},
"yêu cầu": {
"php": ">=5.3.9",
"symfony/symfony": "2.7.*",
"doctrine/orm": "~2.2,>=2.2.3,<2.5",
"học thuyết/dbal": "<2,5",
"học thuyết/gói học thuyết": "~1.4",
"symfony/assetic-bundle": "~2.3",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/gói phân phối": "~4.0",
"sensio/framework-extra-bundle": "~3.0,>=3.0.2",
"incenteev/composer-parameter-handler": "~2.0"
},
"yêu cầu-dev": {
"sensio/generator-bundle": "~2.3"
},
"kịch bản": {
"post-root-gói-cài đặt": [
"SymfonyStandard\\Composer::hookRootPackageInstall"
],
"sau cài đặt-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"
],
"sau cập nhật-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"
]
},
"cấu hình": {
"bin-dir": "bin"
},
"thêm": {
"symfony-app-dir": "ứng dụng",
"symfony-web-dir": "web",
"symfony-asset-install": "tương đối",
"thông số khuyến khích": {
"file": "app/config/parameters.yml"
},
"bí danh nhánh": {
"dev-master": "2.7-dev"
}
}
}

Tôi có phiên bản PHP 5.5.9 và hệ điều hành Ubuntu 14.04.

Ai đó có thể giải thích cho tôi tại sao những lỗi này xảy ra và cách khắc phục chúng?

câu trả lời hay nhất

Theo lỗi của bạn, vấn đề là bạn chưa cài đặt tiện ích mở rộng cURL PHP.

Trong Ubuntu, hãy thử gói cài đặt sau

sudo apt-get cài đặt Curl php5-curl

Bây giờ hãy thử lại.

Về php - cài đặt Symfony2, chúng tôi tìm thấy một câu hỏi tương tự trên Stack Overflow: https://stackoverflow.com/questions/30821103/

hai mươi bốn 4 0
Chứng chỉ ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com
Xem sitemap của VNExpress