Laravel Composer 更新失败 Ubuntu
Laravel Composer update failed Ubuntu
我 运行 在我克隆的项目中更新作曲家,因为我更换了我的电脑。它返回了以下错误,但我不知道如何解决它们...:
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].
正如 Composer 报告的那样,只需安装丢失的扩展。
sudo apt-get install php-mcrypt
sudo apt-get install php-curl
sudo apt-get install php-xml
最终的解决方案是 运行 这个:
sudo apt-get install php5.6-mcrypt
sudo apt-get install php5.6-curl
sudo apt-get install php5.6-xml
对于Php-V 7
sudo apt-get install php7.1-mcrypt
sudo apt-get install php7.1-curl
sudo apt-get install php7.1-xml
我 运行 在我克隆的项目中更新作曲家,因为我更换了我的电脑。它返回了以下错误,但我不知道如何解决它们...:
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].
正如 Composer 报告的那样,只需安装丢失的扩展。
sudo apt-get install php-mcrypt
sudo apt-get install php-curl
sudo apt-get install php-xml
最终的解决方案是 运行 这个:
sudo apt-get install php5.6-mcrypt
sudo apt-get install php5.6-curl
sudo apt-get install php5.6-xml
对于Php-V 7
sudo apt-get install php7.1-mcrypt sudo apt-get install php7.1-curl sudo apt-get install php7.1-xml