2017-01-16 90 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

回答

相關問題