strebl/l5-ldap-auth および strebl/adldap パッケージを adldap2/adldap2-laravel および adldap2/adldap2 に置き換えようとしていますが、Composer を使用してインストールしようとすると次のエラーが発生します。
Your requirements could not be resolved to an installable set of packages.
完全なエラー メッセージは次のとおりです。
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 <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
Installation failed, reverting ./composer.json to its original content.
回線を疑う
requires illuminate/contracts 5.3.* -> no matching package found
問題の根源です。
Github で最新の Laravel 開発ソース コードを見ると、最新バージョンの illuminate/contracts は 5.3 ではなく 5.2 のように見えます。
この要件を無効にする方法、または adldap2/adldap2-laravel と adldap2/adldap2 を強制的にインストールする方法はありますか?
composer.json ファイルの現在の内容は次のとおりです。
{
"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"
}
}