Processing math: 100%

Thread "Unable to install ILIAS 7.2 with composer error"

Tabs

  • jroj
    jroj | jroj | 20. Sep 2021, 01:21
    Unable to install ILIAS 7.2 with composer error
    Hello, 

    I am trying to install ILIAS 7.2 and am facing this every time I try to use the 'composer install --no-dev' command:

    Deprecation Notice: Required parameter $path follows optional parameter $schema in /usr/share/php/JsonSchema/Constraints/UndefinedConstraint.php:62 Deprecation Notice: Required parameter $path follows optional parameter $schema in /usr/share/php/JsonSchema/Constraints/UndefinedConstraint.php:108 Deprecation Notice: Method ReflectionParameter::getClass() is deprecated in /usr/share/php/Composer/Repository/RepositoryManager.php:130 Deprecation Notice: Method ReflectionParameter::getClass() is deprecated in /usr/share/php/Composer/Repository/RepositoryManager.php:130 Do not run Composer as root/super user! See https://getcomposer.org/root for details Loading composer repositories with package information Installing dependencies from lock file Your requirements could not be resolved to an installable set of packages. Problem 1 - This package requires php ^7.3 but your PHP version (8.0.10) does not satisfy that requirement. Problem 2 - Installation request for enshrined/svg-sanitize 0.13.3 -> satisfiable by enshrined/svg-sanitize[0.13.3]. - enshrined/svg-sanitize 0.13.3 requires ext-dom * -> the requested PHP extension dom is missing from your system. Problem 3 - Installation request for jumbojett/openid-connect-php v0.9.2 -> satisfiable by jumbojett/openid-connect-php[v0.9.2]. - jumbojett/openid-connect-php v0.9.2 requires ext-curl * -> the requested PHP extension curl is missing from your system. Problem 4 - Installation request for paragonie/random_compat v9.99.99 -> satisfiable by paragonie/random_compat[v9.99.99]. - paragonie/random_compat v9.99.99 requires php ^7 -> your PHP version (8.0.10) does not satisfy that requirement. Problem 5 - Installation request for phpfastcache/riak-client 3.4.3 -> satisfiable by phpfastcache/riak-client[3.4.3]. - phpfastcache/riak-client 3.4.3 requires ext-curl * -> the requested PHP extension curl is missing from your system. Problem 6 - Installation request for phpoffice/phpspreadsheet 1.18.0 -> satisfiable by phpoffice/phpspreadsheet[1.18.0]. - phpoffice/phpspreadsheet 1.18.0 requires ext-dom * -> the requested PHP extension dom is missing from your system. Problem 7 - Installation request for sabre/dav 3.2.3 -> satisfiable by sabre/dav[3.2.3]. - sabre/dav 3.2.3 requires ext-dom * -> the requested PHP extension dom is missing from your system. Problem 8 - Installation request for sabre/http v4.2.4 -> satisfiable by sabre/http[v4.2.4]. - sabre/http v4.2.4 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. Problem 9 - Installation request for sabre/vobject 4.2.2 -> satisfiable by sabre/vobject[4.2.2]. - sabre/vobject 4.2.2 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. Problem 10 - Installation request for sabre/xml 1.5.1 -> satisfiable by sabre/xml[1.5.1]. - sabre/xml 1.5.1 requires ext-dom * -> the requested PHP extension dom is missing from your system. Problem 11 - Installation request for simplesamlphp/saml2 v4.2.1 -> satisfiable by simplesamlphp/saml2[v4.2.1]. - simplesamlphp/saml2 v4.2.1 requires ext-dom * -> the requested PHP extension dom is missing from your system. Problem 12 - Installation request for simplesamlphp/simplesamlphp v1.18.8 -> satisfiable by simplesamlphp/simplesamlphp[v1.18.8]. - simplesamlphp/simplesamlphp v1.18.8 requires ext-dom * -> the requested PHP extension dom is missing from your system. Problem 13 - Installation request for slim/slim 3.12.3 -> satisfiable by slim/slim[3.12.3]. - slim/slim 3.12.3 requires ext-simplexml * -> the requested PHP extension simplexml is missing from your system. Problem 14 - Installation request for webmozart/assert 1.5.0 -> satisfiable by webmozart/assert[1.5.0]. - webmozart/assert 1.5.0 requires php ^5.3.3 || ^7.0 -> your PHP version (8.0.10) does not satisfy that requirement. Problem 15 - Installation request for zendframework/zend-httphandlerrunner 1.1.0 -> satisfiable by zendframework/zend-httphandlerrunner[1.1.0]. - zendframework/zend-httphandlerrunner 1.1.0 requires php ^7.1 -> your PHP version (8.0.10) does not satisfy that requirement. Problem 16 - paragonie/random_compat v9.99.99 requires php ^7 -> your PHP version (8.0.10) does not satisfy that requirement. - ramsey/uuid 3.9.3 requires paragonie/random_compat ^1 | ^2 | 9.99.99 -> satisfiable by paragonie/random_compat[v9.99.99]. - Installation request for ramsey/uuid 3.9.3 -> satisfiable by ramsey/uuid[3.9.3]. To enable extensions, verify that they are enabled in your .ini files: - /etc/php/8.0/cli/php.ini - /etc/php/8.0/cli/conf.d/10-opcache.ini - /etc/php/8.0/cli/conf.d/10-pdo.ini - /etc/php/8.0/cli/conf.d/20-apcu.ini - /etc/php/8.0/cli/conf.d/20-calendar.ini - /etc/php/8.0/cli/conf.d/20-ctype.ini - /etc/php/8.0/cli/conf.d/20-exif.ini - /etc/php/8.0/cli/conf.d/20-ffi.ini - /etc/php/8.0/cli/conf.d/20-fileinfo.ini - /etc/php/8.0/cli/conf.d/20-ftp.ini - /etc/php/8.0/cli/conf.d/20-gd.ini - /etc/php/8.0/cli/conf.d/20-gettext.ini - /etc/php/8.0/cli/conf.d/20-iconv.ini - /etc/php/8.0/cli/conf.d/20-phar.ini - /etc/php/8.0/cli/conf.d/20-posix.ini - /etc/php/8.0/cli/conf.d/20-readline.ini - /etc/php/8.0/cli/conf.d/20-shmop.ini - /etc/php/8.0/cli/conf.d/20-sockets.ini - /etc/php/8.0/cli/conf.d/20-sysvmsg.ini - /etc/php/8.0/cli/conf.d/20-sysvsem.ini - /etc/php/8.0/cli/conf.d/20-sysvshm.ini - /etc/php/8.0/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. root@instance-20210919-1440:/var/www/html# php --ini Configuration File (php.ini) Path: /etc/php/8.0/cli Loaded Configuration File: /etc/php/8.0/cli/php.ini Scan for additional .ini files in: /etc/php/8.0/cli/conf.d Additional .ini files parsed: /etc/php/8.0/cli/conf.d/10-opcache.ini, /etc/php/8.0/cli/conf.d/10-pdo.ini, /etc/php/8.0/cli/conf.d/20-apcu.ini, /etc/php/8.0/cli/conf.d/20-calendar.ini, /etc/php/8.0/cli/conf.d/20-ctype.ini, /etc/php/8.0/cli/conf.d/20-exif.ini, /etc/php/8.0/cli/conf.d/20-ffi.ini, /etc/php/8.0/cli/conf.d/20-fileinfo.ini, /etc/php/8.0/cli/conf.d/20-ftp.ini, /etc/php/8.0/cli/conf.d/20-gd.ini, /etc/php/8.0/cli/conf.d/20-gettext.ini, /etc/php/8.0/cli/conf.d/20-iconv.ini, /etc/php/8.0/cli/conf.d/20-phar.ini, /etc/php/8.0/cli/conf.d/20-posix.ini, /etc/php/8.0/cli/conf.d/20-readline.ini, /etc/php/8.0/cli/conf.d/20-shmop.ini, /etc/php/8.0/cli/conf.d/20-sockets.ini, /etc/php/8.0/cli/conf.d/20-sysvmsg.ini, /etc/php/8.0/cli/conf.d/20-sysvsem.ini, /etc/php/8.0/cli/conf.d/20-sysvshm.ini, /etc/php/8.0/cli/conf.d/20-tokenizer.ini

    and this when trying to use the 'php setup/setup.php install config.json' command
    Couldnotfindcomposers"autoload.php".Trytorun"composerinstall"inthedirectory".libs/composer"

    I'm in a bit of a hurry to get ILIAS up and running, so your help would be much appreciated!

    Thank you in advance, 
    Jakub Roj
  • jroj
    jroj | jroj | 20. Sep 2021, 01:26
    Code incorrectly inserted
    Hello, 

    I accidentally typed the code incorrectly - it's the first time I am doing this so my apologies!

    I have now attached this in *.txt format. When replying, please remember to scroll a lot to the right, as the code pasted earlier did not wrap and is one huge line. Then you will be able to see the reply screen.

    Thank you once again, 
    Jakub
    Attachments
    composer-error.txt
    phpsetup.txt
  • utesche
    utesche | utesche | 20. Sep 2021, 06:19
    Edited on: 20. Sep 2021, 06:25 - by utesche | utesche
    Re: Code incorrectly inserted
    Hi jroj,

    see:  https://docu.ilias.de/goto.php?target=wiki_1357_Required_and_Supported_Software_ILIAS_7
    or:  https://github.com/ILIAS-eLearning/ILIAS/blob/release_7/docs/configuration/install.md#system-requirements
    or:  line 11-12 in your 'composer-error.txt'

    to see, that ILIAS 7.2 does not run with PHP 8.0, but with PHP 7.3-7.4!

    This is the very next requirement you have to fix...
  • jroj
    jroj | jroj | 20. Sep 2021, 14:16
    I've managed to downgrade but no luck
    Hello Uwe, 

    Thank you so much for your help. 
    Unfortunately, now I am facing yet another problem.

    I have downgraded from php 8.0 back to 7.4, and when I go to run the 'php setup/setup.php install config.json' command, I now face this:

    root@instance-20210919-1440:/var/www/html# php setup/setup.php config.json
    PHP Warning: require_once(/var/www/html/setup/../include/inc.ilias_version.php): failed to open stream: No such file or directory in /var/www/html/setup/cli.php on line 10
    PHP Fatal error: require_once(): Failed opening required '/var/www/html/setup/../include/inc.ilias_version.php' (include_path='.:/usr/share/php') in /var/www/html/setup/cli.php on line 10

    What should I do now? Your help would once again be much appreciated. 

    Many thanks, 
    Jakub Roj

  • utesche
    utesche | utesche | 21. Sep 2021, 12:09
    Re: I've managed to downgrade but no luck
    Hello Jakub,

    it looks to me like an 'incomplete' ILIAS codebase folder.
    The PHP-Warning states: ... no such file or directory in /var/www/html/setup/cli.php ... ,
    so I assume your local codebase folder - where you checked out or unpacked ILIAS - is:
      /var/www/html/
    , right?

    If the codebase would be complete, then there must exist:
      /var/www/html/include/inc.ilias_version.php
    or, in an equivalent path coding:
      /var/www/html/setup/../include/inc.ilias_version.php
    (as written in Warning and Fatal Error).

    Check this!

    Best regards.
  • jroj
    jroj | jroj | 26. Sep 2021, 23:57
    All done!
    Thank you, Uwe, for your help. 

    I'm sorry it took me so long to reply. Your support and solution helped me very much and everything is working now! 

    Thank you once again, 
    Jakub
  • utesche
    utesche | utesche | 27. Sep 2021, 06:07
    Re: All done!
    You're welcome.