phpubuntularavel-4composer-phpubuntu-16.04

Laravel Composer update failed Ubuntu


I ran composer update in my project that I cloned because I changed my computer. And it's returned the following errors, but I don't get how to solved them... :

Problem 1 - The requested PHP extension ext-mcrypt * is missing from your system. Install or enable PHP's mcrypt extension.

Problem 2 - 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 3 - Installation request for phpoffice/phpexcel 1.8.1 -> satisfiable by phpoffice/phpexcel[1.8.1]. - phpoffice/phpexcel 1.8.1 requires ext-xml * -> the requested PHP extension xml is missing from your system.

Problem 4 - Installation request for sentry/sentry 1.5.0 -> satisfiable by sentry/sentry[1.5.0]. - sentry/sentry 1.5.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.

Problem 5 - guzzle/guzzle v3.9.3 requires ext-curl * -> the requested PHP extension curl is missing from your system. - intercom/intercom-php v1.0.0 requires guzzle/guzzle ~3.9 -> satisfiable by guzzle/guzzle[v3.9.3]. - Installation request for intercom/intercom-php v1.0.0 -> satisfiable by intercom/intercom-php[v1.0.0].


Solution

  • The final solution was to run this :

    sudo apt-get install php5.6-mcrypt
    sudo apt-get install php5.6-curl
    sudo apt-get install php5.6-xml
    

    For Php -V 7

    sudo apt-get install php7.1-mcrypt
    sudo apt-get install php7.1-curl
    sudo apt-get install php7.1-xml