gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-05 08:16:17 24 4
gpt4 key购买 nike

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

问题一 - 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 - seer/tokenizer 1.1.0 的安装请求 -> seer/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 以查看 PHP 在 CLI 模式下使用了哪些文件。


这个错误是什么意思?我在我的 php.ini 中提供并启用了上述所有扩展。

最佳答案

尝试运行:

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

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

关于Laravel Composer 安装失败,在 ubuntu 中出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54089901/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com