2017-01-16 94 views
0

我尝试在新项目中执行composer install时尝试解决此问题。我发现有很多解决方案,包括:OpenSSL安装了错误的版本,或者从我的系统中丢失了

brew update 
brew install openssl force link 

export PATH=$(brew --prefix openssl)/bin:$PATH in ~/.bash_profile 

,但一切都导致了这个错误:

Problem 1

  • minishlink/web-push v1.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.

  • laravel-notification-channels/webpush dev-master requires minishlink/web-push 1.1.* -> satisfiable by minishlink/web-push[v1.1].

  • Installation request for laravel-notification-channels/webpush dev-master -> satisfiable by laravel-notification-channels/webpush[dev-master].

$ which openssl 
/usr/local/opt/openssl/bin/openssl 

$ openssl version -a 
OpenSSL 1.0.2j 26 Sep 2016 
built on: reproducible build, date unspecified 
platform: darwin64-x86_64-cc 

和我的PHP版本5.6.24是。

我的问题是,如果我卸载它,我得到一个警告:

Error: Refusing to uninstall /usr/local/Cellar/openssl/1.0.2j 
because it is required by mysql, which is currently installed. 
You can override this and force removal with: 
    brew uninstall --ignore-dependencies openssl 

请问如果我卸载OpenSSL和MYSQL的影响重新安装?我必须重新安装MySQL和PHP吗?因为我正在做一些项目,我害怕搞砸了。 UPDATE

我在下面的评论中找到了解决方案,在这里没有提到它的网站:)祝你好运! 谢谢

+0

另请参见[酿造拒绝链接的OpenSSL(http://stackoverflow.com/q/38670295),[更新OpenSSL的OS X上使用自制](http://stackoverflow.com/q/15185661),[如何安装最新版本的OpenSSL Mac OS X El Capitan](http://stackoverflow.com/q/35129977),[如何在OS中升级OpenSSL (http://apple.stackexchange.com/q/126830),[使用HomeBrew的Openssl安装失败](http://superuser.com/q/486389)等。 – jww

+0

[Update OpenSSL on OS X与自制软件](http://stackoverflow.com/questions/15185661/update-openssl-on-os-x-with-homebrew) – miken32

+0

我已经尝试过所有上述答案,但没有运气... – leo0019

回答

相关问题