【问题标题】:Errors while using a laravel 5 boilerplate使用 laravel 5 样板时出错
【发布时间】:2015-08-28 06:04:03
【问题描述】:

我想使用 https://github.com/rappasoft/laravel-5-boilerplate 作为我的 Laravel 项目的起点,但是当我这样做 composer install 时,出现以下错误。

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 guzzle/guzzle v3.9.3 -> satisfiable by guzzle/guzzle[v3.9.3].
    - guzzle/guzzle v3.9.3 requires ext-curl * -> the requested PHP extension curl is missing from your system.
  Problem 2
    - Installation request for stripe/stripe-php v1.18.0 -> satisfiable by stripe/stripe-php[v1.18.0].
    - stripe/stripe-php v1.18.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
  Problem 3
    - guzzle/guzzle v3.9.3 requires ext-curl * -> the requested PHP extension curl is missing from your system.
    - league/oauth1-client 1.5.0 requires guzzle/guzzle 3.* -> satisfiable by guzzle/guzzle[v3.9.3].
    - Installation request for league/oauth1-client 1.5.0 -> satisfiable by league/oauth1-client[1.5.0].

如何解决?

【问题讨论】:

    标签: php laravel laravel-5 composer-php


    【解决方案1】:

    你不见了php5-curl - CURL module for php5

    sudo apt-get install php5-curl
    

    并尝试再次安装。

    【讨论】:

      【解决方案2】:

      如果您使用的是 ubuntu 16.04,默认情况下它带有 php 7。您缺少 php-curl - php7 的 CURL 模块

        sudo apt install php-curl
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2015-07-04
        • 2023-03-09
        • 1970-01-01
        • 1970-01-01
        • 2017-12-31
        • 1970-01-01
        • 2016-11-18
        相关资源
        最近更新 更多