I am trying to replace the strebl/l5-ldap-auth and strebl/adldap packages with adldap2/adldap2-laravel and adldap2/adldap2, however am getting the following error when trying to install using Composer:
Your requirements could not be resolved to an installable set of packages.
The full error message is as follows:
sudo php composer.phar require adldap2/adldap2
Using version ^6.0 for adldap2/adldap2
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- illuminate/support v5.2.25 requires illuminate/contracts 5.3.* -> no matching package found.
- Conclusion: remove laravel/framework v5.1.35
- Conclusion: don't install laravel/framework v5.1.35
- adldap2/adldap2 v6.0.0 requires illuminate/support ~5.2 -> satisfiable by illuminate/support[v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.6, v5.2.7].
- adldap2/adldap2 v6.0.1 requires illuminate/support ~5.2 -> satisfiable by illuminate/support[v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.6, v5.2.7].
- adldap2/adldap2 v6.0.2 requires illuminate/support ~5.2 -> satisfiable by illuminate/support[v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.6, v5.2.7].
- adldap2/adldap2 v6.0.3 requires illuminate/support ~5.2 -> satisfiable by illuminate/support[v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.6, v5.2.7].
- adldap2/adldap2 v6.0.4 requires illuminate/support ~5.2 -> satisfiable by illuminate/support[v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.6, v5.2.7].
- adldap2/adldap2 v6.0.5 requires illuminate/support ~5.2 -> satisfiable by illuminate/support[v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.6, v5.2.7].
- adldap2/adldap2 v6.0.6 requires illuminate/support ~5.2 -> satisfiable by illuminate/support[v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.6, v5.2.7].
- adldap2/adldap2 v6.0.7 requires illuminate/support ~5.2 -> satisfiable by illuminate/support[v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.6, v5.2.7].
- adldap2/adldap2 v6.0.8 requires illuminate/support ~5.2 -> satisfiable by illuminate/support[v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.6, v5.2.7].
- adldap2/adldap2 v6.0.9 requires illuminate/support ~5.2 -> satisfiable by illuminate/support[v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.6, v5.2.7].
- don't install illuminate/support v5.2.0|don't install laravel/framework v5.1.35
- don't install illuminate/support v5.2.19|don't install laravel/framework v5.1.35
- don't install illuminate/support v5.2.21|don't install laravel/framework v5.1.35
- don't install illuminate/support v5.2.24|don't install laravel/framework v5.1.35
- don't install illuminate/support v5.2.26|don't install laravel/framework v5.1.35
- don't install illuminate/support v5.2.27|don't install laravel/framework v5.1.35
- don't install illuminate/support v5.2.28|don't install laravel/framework v5.1.35
- don't install illuminate/support v5.2.31|don't install laravel/framework v5.1.35
- don't install illuminate/support v5.2.6|don't install laravel/framework v5.1.35
- don't install illuminate/support v5.2.7|don't install laravel/framework v5.1.35
- Installation request for laravel/framework == 5.1.35.0 -> satisfiable by laravel/framework[v5.1.35].
- Installation request for adldap2/adldap2 ^6.0 -> satisfiable by adldap2/adldap2[v6.0.0, v6.0.1, v6.0.2, v6.0.3, v6.0.4, v6.0.5, v6.0.6, v6.0.7, v6.0.8, v6.0.9].
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <http://ift.tt/1QfuRiU; for more details.
Read <http://ift.tt/1g1ylKI; for further common problems.
Installation failed, reverting ./composer.json to its original content.
I suspect the line
requires illuminate/contracts 5.3.* -> no matching package found
is the root of the problem.
Looking at the latest Laravel development source code on Github, it appears to me that the latest version illuminate/contracts is 5.2, not 5.3, so maybe a typo has been made somewhere.
Is there any way I can override this requirement, or otherwise force installation of adldap2/adldap2-laravel and adldap2/adldap2?
The current content of my composer.json file is as follows:
{
"name": "laravel/laravel",
"minimum-stability": "stable",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=5.5.9",
"laravel/framework": "5.1.*",
"venturecraft/revisionable": "^1.27",
"league/oauth2-server": "4.1.*",
"illuminate/html": "5.0.*",
"doctrine/dbal": "^2.5",
"barryvdh/laravel-debugbar": "^2.2",
"barryvdh/laravel-ide-helper": "*",
"strebl/adldap": "4.0.*",
"strebl/l5-ldap-auth": "2.1.*"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~4.0",
"phpspec/phpspec": "~2.1"
},
"autoload": {
"classmap": [
"database",
"app/Custom",
"app/Traits"
],
"psr-4": {
"App\\": "app/"
}
},
"autoload-dev": {
"classmap": [
"tests/TestCase.php"
]
},
"scripts": {
"post-root-package-install": [
"php -r \"copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"php artisan key:generate"
],
"post-install-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postInstall",
"php artisan clear-compiled",
"php artisan ide-helper:generate",
"php artisan optimize"
],
"post-update-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postUpdate",
"php artisan optimize"
]
},
"config": {
"preferred-install": "dist"
}
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire