dev setup: Failed to install PHP libraries. #25

Closed
opened 2018-12-05 21:59:46 -08:00 by micahstubbs · 3 comments
micahstubbs commented 2018-12-05 21:59:46 -08:00 (Migrated from github.com)
./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.
```bash ./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. ```
hperrin commented 2019-03-06 20:42:56 -08:00 (Migrated from github.com)

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.

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.
micahstubbs commented 2019-03-07 20:09:44 -08:00 (Migrated from github.com)

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!

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!
micahstubbs commented 2019-11-21 22:33:09 -08:00 (Migrated from github.com)

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

will close this old issue as an answered question. thanks for the answer!
Sign in to join this conversation.
No description provided.