Macos OSX上的Lib OpenSSL依赖问题Laravel和Composer 我的问题
简而言之,当我运行Macos OSX上的Lib OpenSSL依赖问题Laravel和Composer 我的问题,macos,laravel,openssl,composer-php,jwt,Macos,Laravel,Openssl,Composer Php,Jwt,简而言之,当我运行composer update时,我得到以下错误: Problem 1 - tymon/jwt-auth 0.5.4 requires namshi/jose 5.0.* -> satisfiable by namshi/jose[5.0.0, 5.0.1, 5.0.2]. - tymon/jwt-auth 0.5.5 requires namshi/jose 5.0.* -> satisfiable by namshi/jose[5.0.0,
composer update
时,我得到以下错误:
Problem 1
- tymon/jwt-auth 0.5.4 requires namshi/jose 5.0.* -> satisfiable by namshi/jose[5.0.0, 5.0.1, 5.0.2].
- tymon/jwt-auth 0.5.5 requires namshi/jose 5.0.* -> satisfiable by namshi/jose[5.0.0, 5.0.1, 5.0.2].
- tymon/jwt-auth 0.5.6 requires namshi/jose 5.0.* -> satisfiable by namshi/jose[5.0.0, 5.0.1, 5.0.2].
- tymon/jwt-auth 0.5.7 requires namshi/jose 5.0.* -> satisfiable by namshi/jose[5.0.0, 5.0.1, 5.0.2].
- tymon/jwt-auth 0.5.8 requires namshi/jose 5.0.* -> satisfiable by namshi/jose[5.0.0, 5.0.1, 5.0.2].
- tymon/jwt-auth 0.5.9 requires namshi/jose 5.0.* -> satisfiable by namshi/jose[5.0.0, 5.0.1, 5.0.2].
- tymon/jwt-auth 0.5.1 requires namshi/jose 2.2.* -> satisfiable by namshi/jose[2.2.0, 2.2.1, 2.2.2].
- tymon/jwt-auth 0.5.2 requires namshi/jose 2.2.* -> satisfiable by namshi/jose[2.2.0, 2.2.1, 2.2.2].
- tymon/jwt-auth 0.5.3 requires namshi/jose 2.2.* -> satisfiable by namshi/jose[2.2.0, 2.2.1, 2.2.2].
- tymon/jwt-auth 0.5.0 requires namshi/jose 2.0.* -> satisfiable by namshi/jose[2.0.0, 2.0.1, 2.0.2, 2.0.3].
- 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.
- namshi/jose 5.0.1 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.
- namshi/jose 5.0.0 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.
- namshi/jose 2.2.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.
- namshi/jose 2.2.1 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.
- namshi/jose 2.2.0 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.
- namshi/jose 2.0.3 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.
- namshi/jose 2.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.
- namshi/jose 2.0.1 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.
- namshi/jose 2.0.0 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.
- Installation request for tymon/jwt-auth 0.5.* -> satisfiable by tymon/jwt-auth[0.5.0, 0.5.1, 0.5.2, 0.5.3, 0.5.4, 0.5.5, 0.5.6, 0.5.7, 0.5.8, 0.5.9].
补充资料
我非常不确定这个问题的原因,因为我无法确定它何时出现。我所知道的是,在过去的几天里,它一直在工作,也许今天早些时候
我今天所做的一些事情可能导致了这种情况:
- 我安装并配置了supervisord
- 我安装并配置了beanstalkd
- 我安装了最新的Mac OSX更新(更多信息如下:)
- 将
的版本更改为最新的alpha发行版(这是可行的,但我随后在jwt-auth的实现上遇到了问题),因此我不得不恢复“tymon/jwt-auth”:“0.5.*”
- 我花了很长时间研究每个依赖项的版本,虽然这些版本不可避免地改变了错误消息,但它们仍然无法解决问题
- 我使用
升级到最新版本的openssl。然而,这并没有在PHP中更新openssl,因为我正在使用MAMP(我想),并且我无法控制使用哪个版本的openssl PHP编译brew upgrade openssl
按照上面链接中的步骤,它将解决问题我在Mac和MAMP上遇到了相同的问题,我跟踪到它检查了我的apple PHP版本,而不是我的MAMP版本。我通过创建一个从/usr/local/bin到我的MAMP PHP的符号链接来解决这个问题
cd /usr/local/bin
sudo ln /Applications/MAMP/bin/php/php7.0.10/bin/php php
在我的例子中,问题在于没有php mcrypt,这意味着php没有使用openssl支持编译。安装php70 mcrypt为我解决了这个问题。请注意,它将重新编译php
brew安装php70 mcrypt
我目前的版本是:
- 自制1.1.1
- 自制/自制核心(git版本81b69;最后提交日期2016-11-20)
- PHP 7.0.13(cli)(构建时间:2016年11月21日11:26:59)(NTS)
- OSX El Capitan 10.11.6
干杯 我正在使用MAMP,所以需要告诉我的Mac使用PHP的MAMP版本 在终端中,运行:
nano~/.bash\u配置文件
导出路径=/Applications/MAMP/bin/php/php5.6.27/bin:$PATH
然后退出终端并再次尝试运行
composer install
在最新版本的Mamp-Pro(在回答此问题时为4.1版)中,有一个选项可以在命令行上提供Mamp-Pro版本的PHP,这在我看来是最简单的解决方案
首先,打开MAMP Pro主窗口并从左侧菜单中选择PHP:
然后,在选择要运行哪个版本的PHP的正下方,有一个复选框“使此版本在命令行上可用”
然后保存更改并重新启动终端。如果您键入
php-v
,您应该会看到php的更新版本。如果我能给您50票,我会的!!!非常感谢你!你救了我的命!!!!谢谢谢谢谢谢谢谢!!!!!这对我很有用,谢谢——我需要升级MAMP PRO 3.5->4.0.5 firstHi@Dayveian,现在我的php artisan没有提供任何帮助?