Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Composer: request PHP extention mongodb #458

Open
romiafrizal opened this issue Oct 27, 2020 · 0 comments
Open

Composer: request PHP extention mongodb #458

romiafrizal opened this issue Oct 27, 2020 · 0 comments

Comments

@romiafrizal
Copy link

Build Fail when installing mongodb:

Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - Installation request for mongodb/mongodb 1.7.1 -> satisfiable by mongodb/mongodb[1.7.1].
    - mongodb/mongodb 1.7.1 requires ext-mongodb ^1.8 -> the requested PHP extension mongodb is missing from your system.
  Problem 2
    - mongodb/mongodb 1.7.1 requires ext-mongodb ^1.8 -> the requested PHP extension mongodb is missing from your system.
    - jenssegers/mongodb v3.6.5 requires mongodb/mongodb ^1.4 -> satisfiable by mongodb/mongodb[1.7.1].
    - Installation request for jenssegers/mongodb v3.6.5 -> satisfiable by jenssegers/mongodb[v3.6.5].

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

Affected builder image

gcr.io/cloud-builders-community/composer

Expected Behavior

Composer build step success

Actual Behavior

Composer build step fail

Steps to Reproduce the Problem

  1. compser.json
{
    "name": "laravel/lumen",
    "description": "The Laravel Lumen Framework.",
    "keywords": ["framework", "laravel", "lumen"],
    "license": "MIT",
    "type": "project",
    "require": {
. . .
   "mongodb/mongodb": "^1.7",
. . .
},
    "config": {
        "preferred-install": "dist",
        "sort-packages": true,
        "optimize-autoloader": true
    },
    "minimum-stability": "dev",
    "prefer-stable": true
}

Additional Info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant