使用laravel 5样板时出错

时间:2015-08-28 06:04:04

标签: php laravel laravel-5 composer-php

我想用 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].

如何解决这个问题?

2 个答案:

答案 0 :(得分:6)

您遗失php5-curl - CURL module for php5

sudo apt-get install php5-curl

并尝试重新安装。

答案 1 :(得分:2)

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

  sudo apt install php-curl