themsaid / ibis

A PHP tool that helps you write eBooks in markdown and convert to PDF.
MIT License
1.97k stars 150 forks source link

Can't install on PHP 7.4.4 #24

Open cavo789 opened 3 years ago

cavo789 commented 3 years ago

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

C:\temp\book>composer global require themsaid/ibis
Changed current directory to C:/Users/Christophe/AppData/Roaming/Composer
Using version ^0.1.3 for themsaid/ibis
./composer.json has been updated
Running composer update themsaid/ibis
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - mpdf/mpdf[v8.0.0, ..., v8.0.3] require php ^5.6 || ~7.0.0 || ~7.1.0 || ~7.2.0 || ~7.3.0 -> your php version (7.4.4) does not satisfy that requirement.
    - mpdf/mpdf[v8.0.4, ..., v8.0.7] require paragonie/random_compat ^1.4|^2.0|9.99.99 -> found paragonie/random_compat[v1.4.0, v1.4.1, v1.4.2, v1.4.3, v2.0.0, ..., v2.0.19, v9.99.99] but the package is fixed to v9.99.100 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - themsaid/ibis v0.1.3 requires mpdf/mpdf ^8.0 -> satisfiable by mpdf/mpdf[v8.0.0, ..., v8.0.7].
    - Root composer.json requires themsaid/ibis ^0.1.3 -> satisfiable by themsaid/ibis[v0.1.3].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
ajthinking commented 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
skino2019 commented 3 years ago

im getting this issue on PHP 7.4.23 but the above fix didnt work for me.

` Problem 1

sugatoray commented 3 years ago

@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

Command

cgr global require themsaid/ibis
Output :fire: :fire: :fire:

```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. ```

ajthinking commented 3 years ago

@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:

sugatoray commented 3 years ago

@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.

amitmerchant1990 commented 2 years ago

This answer helped me solve this issue: https://stackoverflow.com/a/34010095/1485183