hperrin / tunnelgram

End to end encrypted messenger with photo, video, and multi-device support.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dev setup: Failed to install PHP libraries.

micahstubbs opened this issue · comments

./run.sh

# ...

Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for web-token/jwt-core v1.2.3 -> satisfiable by web-token/jwt-core[v1.2.3].
    - web-token/jwt-core v1.2.3 requires ext-gmp * -> the requested PHP extension gmp is missing from your system.
  Problem 2
    - Installation request for web-token/jwt-util-ecc v1.2.3 -> satisfiable by web-token/jwt-util-ecc[v1.2.3].
    - web-token/jwt-util-ecc v1.2.3 requires ext-gmp * -> the requested PHP extension gmp is missing from your system.
  Problem 3
    - web-token/jwt-core v1.2.3 requires ext-gmp * -> the requested PHP extension gmp is missing from your system.
    - web-token/jwt-signature v1.2.3 requires web-token/jwt-core ^1.2 -> satisfiable by web-token/jwt-core[v1.2.3].
    - Installation request for web-token/jwt-signature v1.2.3 -> satisfiable by web-token/jwt-signature[v1.2.3].

  To enable extensions, verify that they are enabled in your .ini files:
    -
    - /usr/local/etc/php/conf.d/date_timezone.ini
    - /usr/local/etc/php/conf.d/docker-php-ext-sodium.ini
    - /usr/local/etc/php/conf.d/docker-php-ext-zip.ini
    - /usr/local/etc/php/conf.d/memory-limit.ini
  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
Failed to install PHP libraries.

Not exactly a bug, but I know what's going on here. composer.sh is detecting you've got composer installed locally, and running it, but then it's failing because of environment. I need to have composer.sh run it with the ignore platform reqs flag.

ah! that makes sense. it would be cool to make the script more robust to people's weird / old / unique local environments.

thanks for explaining!

will close this old issue as an answered question. thanks for the answer!