Ich versuche Compiler-Installation für ein Laravel-Projekt auszuführen. Der Fehler ist wie folgt:laravel composer install konnte das installierbare Paket für tymon/jwt-auth nicht lösen
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for namshi/jose 5.0.2 -> satisfiable by namshi/jose[5.0.2].
- namshi/jose 5.0.2 requires lib-openssl * -> the requested linked library openssl has the wrong version installed or is missing from your system, make sure to have the extension providing it.
Problem 2
- namshi/jose 5.0.2 requires lib-openssl * -> the requested linked library openssl has the wrong version installed or is missing from your system, make sure to have the extension providing it.
- tymon/jwt-auth 0.5.9 requires namshi/jose 5.0.* -> satisfiable by namshi/jose[5.0.2].
- Installation request for tymon/jwt-auth 0.5.9 -> satisfiable by tymon/jwt-auth[0.5.9].
ich in das sah, scheint es, dass PHP in meinem Mac openSSL nicht haben. Aber wenn ich
php -m
Es laufen ist OpenSSL-Modul in der Liste.
Daher verstehe ich nicht, was das Problem ist.
Hier ist meine composer.json
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=5.5.9",
"laravel/framework": "5.1.*",
"tymon/jwt-auth": "0.5.*",
"barryvdh/laravel-ide-helper": "^2.1",
"fzaninotto/faker": "~1.4",
"zizaco/entrust": "~2.0"
},
"require-dev": {
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~4.0",
"phpspec/phpspec": "~2.1"
},
"autoload": {
"classmap": [
"database",
"app/Services"
],
"psr-4": {
"App\\": "app/"
}
},
"autoload-dev": {
"classmap": [
"tests/TestCase.php"
]
},
"scripts": {
"post-install-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"pre-update-cmd": [
"php artisan clear-compiled"
],
"post-update-cmd": [
"php artisan optimize"
],
"post-root-package-install": [
"php -r \"copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"php artisan key:generate"
]
},
"config": {
"preferred-install": "dist"
}
}
PS: Ich habe gerade einen brandneuen Mac Pro haben MAMP und Xcode nicht bekam Zeit zu installieren, also denke ich, die PHP Ich benutzte intern ist
Versuchen Sie, einen kleinen PHP-Skript mit 'phpinfo Erstellen()' und sehen, ob OpenSSL ist. – user3158900