Laravel Composer安装失败,并在ubuntu中出现错误

时间:2019-01-08 10:32:05

标签: laravel composer-php php-7.2

使用软件包信息加载composer存储库 从锁定文件安装依赖项(包括require-dev) 您的要求无法解决为一组可安装的软件包。

问题1     -aws / aws-sdk-php 3.75.0的安装请求-> aws / aws-sdk-php [3.75.0]可以满足。

- aws/aws-sdk-php 3.75.0 requires ext-simplexml * -> the requested PHP extension simplexml is missing from your system.

问题2     -erusev / parsedown 1.7.1的安装请求-> erusev / parsedown [1.7.1]可以满足。

- erusev/parsedown 1.7.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.

问题3     -laravel / framework v5.5.43的安装要求-> laravel / framework [v5.5.43]可以满足。

- laravel/framework v5.5.43 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.

问题4     -League / csv 9.1.4的安装要求-> League / csv [9.1.4]可满足。

- league/csv 9.1.4 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.

问题5     -nicolaslopezj / searchable [1.10.3]可满足nicolaslopezj / searchable 1.10.3的安装要求。

- nicolaslopezj/searchable 1.10.3 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.

问题6     -phpoffice / phpexcel 1.8.1的安装请求-> phpoffice / phpexcel [1.8.1]可以满足。

- phpoffice/phpexcel 1.8.1 requires ext-xml * -> the requested PHP extension xml is missing from your system.

问题7     -phar-io / manifest 1.0.1的安装要求-> phar-io / manifest [1.0.1]可以满足。

- phar-io/manifest 1.0.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.

问题8     -phpunit / php-code-coverage 5.3.2的安装请求-> phpunit / php-code-coverage [5.3.2]可满足。     -phpunit / php-code-coverage 5.3.2需要ext-dom *->系统中缺少所请求的PHP扩展dom。

问题9     -phpunit / phpunit 6.5.13的安装请求-> phpunit / phpunit [6.5.13]可以满足。

- phpunit/phpunit 6.5.13 requires ext-dom * -> the requested PHP extension dom is missing from your system.

问题10     -theseer / tokenizer 1.1.0的安装请求-> theseer / tokenizer [1.1.0]可以满足。

- theseer/tokenizer 1.1.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.

问题11     -aws / aws-sdk-php 3.75.0需要ext-simplexml *->系统中缺少所请求的PHP扩展simplexml。

- league/flysystem-aws-s3-v3 1.0.21 requires aws/aws-sdk-php ^3.0.0 -> satisfiable by aws/aws-sdk-php[3.75.0].

- Installation request for league/flysystem-aws-s3-v3 1.0.21 -> satisfiable by league/flysystem-aws-s3-v3[1.0.21].

要启用扩展,请确认您的.ini文件中已启用扩展:     -/etc/php/7.2/cli/php.ini

- /etc/php/7.2/cli/conf.d/10-opcache.ini

- /etc/php/7.2/cli/conf.d/10-pdo.ini

- /etc/php/7.2/cli/conf.d/20-calendar.ini

- /etc/php/7.2/cli/conf.d/20-ctype.ini

- /etc/php/7.2/cli/conf.d/20-exif.ini

- /etc/php/7.2/cli/conf.d/20-fileinfo.ini

- /etc/php/7.2/cli/conf.d/20-ftp.ini

- /etc/php/7.2/cli/conf.d/20-gettext.ini

- /etc/php/7.2/cli/conf.d/20-iconv.ini

- /etc/php/7.2/cli/conf.d/20-json.ini

- /etc/php/7.2/cli/conf.d/20-phar.ini

- /etc/php/7.2/cli/conf.d/20-posix.ini

- /etc/php/7.2/cli/conf.d/20-readline.ini

- /etc/php/7.2/cli/conf.d/20-shmop.ini

- /etc/php/7.2/cli/conf.d/20-sockets.ini

- /etc/php/7.2/cli/conf.d/20-sysvmsg.ini

- /etc/php/7.2/cli/conf.d/20-sysvsem.ini

- /etc/php/7.2/cli/conf.d/20-sysvshm.ini

- /etc/php/7.2/cli/conf.d/20-tokenizer.ini

您还可以在终端中运行php --ini,以查看CLI模式下PHP使用了哪些文件。


该错误是什么意思?我有上面提到的所有扩展都可以在我的php.ini中启用。

1 个答案:

答案 0 :(得分:1)

尝试运行:

sudo apt install php7.2-mbstring php7.2-xml

您在系统中缺少这些扩展名和/或未将其配置为通过php启用。这样会在您的php.ini文件中安装并启用它们。