0
Help us understand the problem. What are the problem?

More than 3 years have passed since last update.

posted at

Organization

ext-curlが無いと怒られたときの対応

何が起きたか

composer installで怒られた

$ composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.

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

  Problem 1
    - Installation request for paypal/merchant-sdk-php v3.9.1 -> satisfiable by paypal/merchant-sdk-php[v3.9.1].
    - paypal/merchant-sdk-php v3.9.1 requires ext-curl * -> the requested PHP extension curl is missing from your system.
  Problem 2
    - Installation request for paypal/sdk-core-php 3.3.2 -> satisfiable by paypal/sdk-core-php[3.3.2].
    - paypal/sdk-core-php 3.3.2 requires ext-curl * -> the requested PHP extension curl is missing from your system.
  Problem 3
    - Installation request for pusher/pusher-php-server 2.6.4 -> satisfiable by pusher/pusher-php-server[2.6.4].
    - pusher/pusher-php-server 2.6.4 requires ext-curl * -> the requested PHP extension curl is missing from your system.

  To enable extensions, verify that they are enabled in your .ini files:
    - /home/ubuntu/.phpbrew/php/php-7.0.23/etc/php.ini
  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

環境

Ubuntu 14.01 LTS on Cloud9
PHP7 on phpbrew

やったこと

$ sudo apt-get install  libcurl4-openssl-dev
$ phpbrew ext install curl
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Sign upLogin
0
Help us understand the problem. What are the problem?