php 使用 coding 的持续构建的时候,出现了两个问题:
1.composer 提示不能用 root 用户。
2.提示某些 php 扩展没有。
请问有啥好的解决办法吗?
日志如下:
“`
+ composer install –no-plugins –no-scripts
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
– Installation request for endroid/qr-code 3.9.1 -> satisfiable by endroid/qr-code[3.9.1].
– endroid/qr-code 3.9.1 requires ext-gd * -> the requested PHP extension gd is missing from your system.
Problem 2
– Installation request for overtrue/http 1.1.3 -> satisfiable by overtrue/http[1.1.3].
– overtrue/http 1.1.3 requires ext-curl * -> the requested PHP extension curl is missing from your system.
Problem 3
– Installation request for phpoffice/phpspreadsheet 1.14.1 -> satisfiable by phpoffice/phpspreadsheet[1.14.1].
– phpoffice/phpspreadsheet 1.14.1 requires ext-gd * -> the requested PHP extension gd is missing from your system.
Problem 4
– Installation request for topthink/think-image v1.0.7 -> satisfiable by topthink/think-image[v1.0.7].
– topthink/think-image v1.0.7 requires ext-gd * -> the requested PHP extension gd is missing from your system.
Problem 5
– overtrue/http 1.1.3 requires ext-curl * -> the requested PHP extension curl is missing from your system.
– mingyoung/dingtalk 2.3.1 requires overtrue/http 1.1.3 -> satisfiable by overtrue/http[1.1.3].
– Installation request for mingyoung/dingtalk 2.3.1 -> satisfiable by mingyoung/dingtalk[2.3.1].
To enable extensions, verify that they are enabled in your .ini files:
– /etc/php/7.3/cli/php.ini
– /etc/php/7.3/cli/conf.d/10-opcache.ini
– /etc/php/7.3/cli/conf.d/10-pdo.ini
– /etc/php/7.3/cli/conf.d/15-xml.ini
– /etc/php/7.3/cli/conf.d/20-calendar.ini
“`