Skip to content

composer install fails in Ubuntu 24.04 #70

@merkouris148

Description

@merkouris148

Hello thanks for making your project open source!
I had a problem installing geneology in Ubuntu 24.04. In particular, composer install fails with the following message:

Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.

  Problem 1
    - masterminds/html5 is locked to version 2.10.0 and an update of this package was not requested.
    - masterminds/html5 2.10.0 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
  Problem 2
    - openspout/openspout is locked to version v4.32.0 and an update of this package was not requested.
    - openspout/openspout v4.32.0 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
  Problem 3
    - symfony/html-sanitizer is locked to version v7.3.3 and an update of this package was not requested.
    - symfony/html-sanitizer v7.3.3 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
  Problem 4
    - tijsverkoyen/css-to-inline-styles is locked to version v2.3.0 and an update of this package was not requested.
    - tijsverkoyen/css-to-inline-styles v2.3.0 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
  Problem 5
    - brianium/paratest is locked to version v7.14.1 and an update of this package was not requested.
    - brianium/paratest v7.14.1 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
  Problem 6
    - laravel/pint is locked to version v1.25.1 and an update of this package was not requested.
    - laravel/pint v1.25.1 requires ext-xml * -> it is missing from your system. Install or enable PHP's xml extension.
  Problem 7
    - phar-io/manifest is locked to version 2.0.4 and an update of this package was not requested.
    - phar-io/manifest 2.0.4 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
  Problem 8
    - phpunit/php-code-coverage is locked to version 12.4.0 and an update of this package was not requested.
    - phpunit/php-code-coverage 12.4.0 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
  Problem 9
    - phpunit/phpunit is locked to version 12.4.0 and an update of this package was not requested.
    - phpunit/phpunit 12.4.0 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
  Problem 10
    - sebastian/comparator is locked to version 7.1.3 and an update of this package was not requested.
    - sebastian/comparator 7.1.3 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
  Problem 11
    - stichoza/google-translate-php is locked to version v5.3.0 and an update of this package was not requested.
    - stichoza/google-translate-php v5.3.0 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
  Problem 12
    - theseer/tokenizer is locked to version 1.2.3 and an update of this package was not requested.
    - theseer/tokenizer 1.2.3 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
  Problem 13
    - tijsverkoyen/css-to-inline-styles v2.3.0 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
    - laravel/framework v12.35.1 requires tijsverkoyen/css-to-inline-styles ^2.2.5 -> satisfiable by tijsverkoyen/css-to-inline-styles[v2.3.0].
    - laravel/framework is locked to version v12.35.1 and an update of this package was not requested.

To enable extensions, verify that they are enabled in your .ini files:
    - /etc/php/8.3/cli/php.ini
    - /etc/php/8.3/cli/conf.d/10-opcache.ini
    - /etc/php/8.3/cli/conf.d/10-pdo.ini
    - /etc/php/8.3/cli/conf.d/20-calendar.ini
    - /etc/php/8.3/cli/conf.d/20-ctype.ini
    - /etc/php/8.3/cli/conf.d/20-curl.ini
    - /etc/php/8.3/cli/conf.d/20-exif.ini
    - /etc/php/8.3/cli/conf.d/20-ffi.ini
    - /etc/php/8.3/cli/conf.d/20-fileinfo.ini
    - /etc/php/8.3/cli/conf.d/20-ftp.ini
    - /etc/php/8.3/cli/conf.d/20-gettext.ini
    - /etc/php/8.3/cli/conf.d/20-iconv.ini
    - /etc/php/8.3/cli/conf.d/20-intl.ini
    - /etc/php/8.3/cli/conf.d/20-mbstring.ini
    - /etc/php/8.3/cli/conf.d/20-phar.ini
    - /etc/php/8.3/cli/conf.d/20-posix.ini
    - /etc/php/8.3/cli/conf.d/20-readline.ini
    - /etc/php/8.3/cli/conf.d/20-shmop.ini
    - /etc/php/8.3/cli/conf.d/20-sockets.ini
    - /etc/php/8.3/cli/conf.d/20-sysvmsg.ini
    - /etc/php/8.3/cli/conf.d/20-sysvsem.ini
    - /etc/php/8.3/cli/conf.d/20-sysvshm.ini
    - /etc/php/8.3/cli/conf.d/20-tokenizer.ini
    - /etc/php/8.3/cli/conf.d/20-zip.ini
You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with `--ignore-platform-req=ext-dom --ignore-platform-req=ext-xml` to temporarily ignore these required extensions.

The proposed fix: composer update also fails with the following message.

Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.

  Problem 1
    - masterminds/html5 is locked to version 2.10.0 and an update of this package was not requested.
    - masterminds/html5 2.10.0 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
  Problem 2
    - openspout/openspout is locked to version v4.32.0 and an update of this package was not requested.
    - openspout/openspout v4.32.0 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
  Problem 3
    - symfony/html-sanitizer is locked to version v7.3.3 and an update of this package was not requested.
    - symfony/html-sanitizer v7.3.3 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
  Problem 4
    - tijsverkoyen/css-to-inline-styles is locked to version v2.3.0 and an update of this package was not requested.
    - tijsverkoyen/css-to-inline-styles v2.3.0 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
  Problem 5
    - brianium/paratest is locked to version v7.14.1 and an update of this package was not requested.
    - brianium/paratest v7.14.1 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
  Problem 6
    - laravel/pint is locked to version v1.25.1 and an update of this package was not requested.
    - laravel/pint v1.25.1 requires ext-xml * -> it is missing from your system. Install or enable PHP's xml extension.
  Problem 7
    - phar-io/manifest is locked to version 2.0.4 and an update of this package was not requested.
    - phar-io/manifest 2.0.4 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
  Problem 8
    - phpunit/php-code-coverage is locked to version 12.4.0 and an update of this package was not requested.
    - phpunit/php-code-coverage 12.4.0 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
  Problem 9
    - phpunit/phpunit is locked to version 12.4.0 and an update of this package was not requested.
    - phpunit/phpunit 12.4.0 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
  Problem 10
    - sebastian/comparator is locked to version 7.1.3 and an update of this package was not requested.
    - sebastian/comparator 7.1.3 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
  Problem 11
    - stichoza/google-translate-php is locked to version v5.3.0 and an update of this package was not requested.
    - stichoza/google-translate-php v5.3.0 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
  Problem 12
    - theseer/tokenizer is locked to version 1.2.3 and an update of this package was not requested.
    - theseer/tokenizer 1.2.3 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
  Problem 13
    - tijsverkoyen/css-to-inline-styles v2.3.0 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
    - laravel/framework v12.35.1 requires tijsverkoyen/css-to-inline-styles ^2.2.5 -> satisfiable by tijsverkoyen/css-to-inline-styles[v2.3.0].
    - laravel/framework is locked to version v12.35.1 and an update of this package was not requested.

To enable extensions, verify that they are enabled in your .ini files:
    - /etc/php/8.3/cli/php.ini
    - /etc/php/8.3/cli/conf.d/10-opcache.ini
    - /etc/php/8.3/cli/conf.d/10-pdo.ini
    - /etc/php/8.3/cli/conf.d/20-calendar.ini
    - /etc/php/8.3/cli/conf.d/20-ctype.ini
    - /etc/php/8.3/cli/conf.d/20-curl.ini
    - /etc/php/8.3/cli/conf.d/20-exif.ini
    - /etc/php/8.3/cli/conf.d/20-ffi.ini
    - /etc/php/8.3/cli/conf.d/20-fileinfo.ini
    - /etc/php/8.3/cli/conf.d/20-ftp.ini
    - /etc/php/8.3/cli/conf.d/20-gettext.ini
    - /etc/php/8.3/cli/conf.d/20-iconv.ini
    - /etc/php/8.3/cli/conf.d/20-intl.ini
    - /etc/php/8.3/cli/conf.d/20-mbstring.ini
    - /etc/php/8.3/cli/conf.d/20-phar.ini
    - /etc/php/8.3/cli/conf.d/20-posix.ini
    - /etc/php/8.3/cli/conf.d/20-readline.ini
    - /etc/php/8.3/cli/conf.d/20-shmop.ini
    - /etc/php/8.3/cli/conf.d/20-sockets.ini
    - /etc/php/8.3/cli/conf.d/20-sysvmsg.ini
    - /etc/php/8.3/cli/conf.d/20-sysvsem.ini
    - /etc/php/8.3/cli/conf.d/20-sysvshm.ini
    - /etc/php/8.3/cli/conf.d/20-tokenizer.ini
    - /etc/php/8.3/cli/conf.d/20-zip.ini
You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with `--ignore-platform-req=ext-dom --ignore-platform-req=ext-xml` to temporarily ignore these required extensions.

Thanks in advance,
Merkouris

Metadata

Metadata

Assignees

Labels

help wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions