Open cavo789 opened 3 years ago
A workaround is to use cgr
(a safe alternative to composer global require)
composer global require consolidation/cgr
cgr global require themsaid/ibis
mkdir mybook
cd mybook
ibis init
im getting this issue on PHP 7.4.23 but the above fix didnt work for me.
` Problem 1
@ajthinking I followed your instruction on using cgr
instead of composer
(as composer
already was throwing installation error), and got the following installation failure.
cc: @themsaid
cgr global require themsaid/ibis
```sh >> Running: composer '--working-dir=/home/sugatoray/.config/composer/global/themsaid/ibis' require 'themsaid/ibis' Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/ Using version ^0.1.4 for themsaid/ibis ./composer.json has been created Loading composer repositories with package information Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/ Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages. Problem 1 - mpdf/mpdf v8.0.9 requires ext-gd * -> the requested PHP extension gd is missing from your system. - mpdf/mpdf v8.0.8 requires ext-gd * -> the requested PHP extension gd is missing from your system. - mpdf/mpdf v8.0.7 requires ext-gd * -> the requested PHP extension gd is missing from your system. - mpdf/mpdf v8.0.6 requires ext-gd * -> the requested PHP extension gd is missing from your system. - mpdf/mpdf v8.0.5 requires ext-gd * -> the requested PHP extension gd is missing from your system. - mpdf/mpdf v8.0.4 requires ext-gd * -> the requested PHP extension gd is missing from your system. - mpdf/mpdf v8.0.3 requires php ^5.6 || ~7.0.0 || ~7.1.0 || ~7.2.0 || ~7.3.0 -> your PHP version (7.4.3) does not satisfy that requirement. - mpdf/mpdf v8.0.2 requires php ^5.6 || ~7.0.0 || ~7.1.0 || ~7.2.0 || ~7.3.0 -> your PHP version (7.4.3) does not satisfy that requirement. - mpdf/mpdf v8.0.13 requires ext-gd * -> the requested PHP extension gd is missing from your system. - mpdf/mpdf v8.0.12 requires ext-gd * -> the requested PHP extension gd is missing from your system. - mpdf/mpdf v8.0.11 requires ext-gd * -> the requested PHP extension gd is missing from your system. - mpdf/mpdf v8.0.10 requires ext-gd * -> the requested PHP extension gd is missing from your system. - mpdf/mpdf v8.0.1 requires php ^5.6 || ~7.0.0 || ~7.1.0 || ~7.2.0 || ~7.3.0 -> your PHP version (7.4.3) does not satisfy that requirement. - mpdf/mpdf v8.0.0 requires php ^5.6 || ~7.0.0 || ~7.1.0 || ~7.2.0 || ~7.3.0 -> your PHP version (7.4.3) does not satisfy that requirement. - themsaid/ibis v0.1.4 requires mpdf/mpdf ^8.0 -> satisfiable by mpdf/mpdf[v8.0.0, v8.0.1, v8.0.10, v8.0.11, v8.0.12, v8.0.13, v8.0.2, v8.0.3, v8.0.4, v8.0.5, v8.0.6, v8.0.7, v8.0.8, v8.0.9]. - Installation request for themsaid/ibis ^0.1.4 -> satisfiable by themsaid/ibis[v0.1.4]. 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-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-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. Installation failed, deleting ./composer.json. ```
@sugatoray did you try enabling it in php.ini?
mpdf/mpdf v8.0.9 requires ext-gd * -> the requested PHP extension gd is missing from your system.
Also not sure if this is actually working. Don't remember if I actually got it working :monocle_face:
@ajthinking Is there a dockerfile defined (or, a docker-image available) with the setup for ibis
? That would be much more convenient than having to figure out what is not working.
This answer helped me solve this issue: https://stackoverflow.com/a/34010095/1485183
Hello
I wanted to take a look at your tool but I couldn't install it even though I have PHP 7.4 and I have activated the GD extension in my
php.ini
.Can you confirm that ibis can be installed with 7.4.4?
Thanks