jeudi 17 décembre 2020

Not install required extensions on ubuntu

I am using aws ubuntu server for hosting laravel website . When I run Composer install command it gives this error

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - phpoffice/phpspreadsheet[1.14.0, ..., 1.15.0] require ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
    - Root composer.json requires phpoffice/phpspreadsheet ^1.14 -> satisfiable by phpoffice/phpspreadsheet[1.14.0, 1.14.1, 1.15.0].

To enable extensions, verify that they are enabled in your .ini files:
    - /etc/php/7.4/cli/php.ini
    - /etc/php/7.4/cli/conf.d/10-mysqlnd.ini
    - /etc/php/7.4/cli/conf.d/10-opcache.ini
    - /etc/php/7.4/cli/conf.d/10-pdo.ini
    - /etc/php/7.4/cli/conf.d/20-calendar.ini
    - /etc/php/7.4/cli/conf.d/20-ctype.ini
    - /etc/php/7.4/cli/conf.d/20-exif.ini
    - /etc/php/7.4/cli/conf.d/20-ffi.ini
    - /etc/php/7.4/cli/conf.d/20-fileinfo.ini
    - /etc/php/7.4/cli/conf.d/20-ftp.ini
    - /etc/php/7.4/cli/conf.d/20-gettext.ini
    - /etc/php/7.4/cli/conf.d/20-iconv.ini
    - /etc/php/7.4/cli/conf.d/20-json.ini
    - /etc/php/7.4/cli/conf.d/20-mbstring.ini
    - /etc/php/7.4/cli/conf.d/20-mysqli.ini
    - /etc/php/7.4/cli/conf.d/20-pdo_mysql.ini
    - /etc/php/7.4/cli/conf.d/20-phar.ini
    - /etc/php/7.4/cli/conf.d/20-posix.ini
    - /etc/php/7.4/cli/conf.d/20-readline.ini
    - /etc/php/7.4/cli/conf.d/20-shmop.ini
    - /etc/php/7.4/cli/conf.d/20-sockets.ini
    - /etc/php/7.4/cli/conf.d/20-sysvmsg.ini
    - /etc/php/7.4/cli/conf.d/20-sysvsem.ini
    - /etc/php/7.4/cli/conf.d/20-sysvshm.ini
    - /etc/php/7.4/cli/conf.d/20-tokenizer.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

Here is conf.d directory



ubuntu@ip-172-31-8-137:/etc/php/7.4/cli/conf.d$ ls
10-mysqlnd.ini   20-ffi.ini       20-mbstring.ini   20-shmop.ini
10-opcache.ini   20-fileinfo.ini  20-mysqli.ini     20-sockets.ini
10-pdo.ini       20-ftp.ini       20-pdo_mysql.ini  20-sysvmsg.ini
20-calendar.ini  20-gettext.ini   20-phar.ini       20-sysvsem.ini
20-ctype.ini     20-iconv.ini     20-posix.ini      20-sysvshm.ini
20-exif.ini      20-json.ini      20-readline.ini   20-tokenizer.ini



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3oZjtRh
via IFTTT

Aucun commentaire:

Enregistrer un commentaire