2016-10-19 33 views
2

我想作曲家更新,但它說:namshi /何塞5.0.2要求LIB-OpenSSL的

composer update 
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 
    - 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]. 
    - tymon/jwt-auth 0.5.9 requires namshi/jose 5.0.* -> satisfiable by namshi/jose[5.0.2, 5.0.0, 5.0.1]. 
    - tymon/jwt-auth 0.5.4 requires namshi/jose 5.0.* -> satisfiable by namshi/jose[5.0.2, 5.0.0, 5.0.1]. 
    - tymon/jwt-auth 0.5.5 requires namshi/jose 5.0.* -> satisfiable by namshi/jose[5.0.2, 5.0.0, 5.0.1]. 
    - tymon/jwt-auth 0.5.6 requires namshi/jose 5.0.* -> satisfiable by namshi/jose[5.0.2, 5.0.0, 5.0.1]. 
    - tymon/jwt-auth 0.5.7 requires namshi/jose 5.0.* -> satisfiable by namshi/jose[5.0.2, 5.0.0, 5.0.1]. 
    - tymon/jwt-auth 0.5.8 requires namshi/jose 5.0.* -> satisfiable by namshi/jose[5.0.2, 5.0.0, 5.0.1]. 
    - tymon/jwt-auth 0.5.9 requires namshi/jose 5.0.* -> satisfiable by namshi/jose[5.0.2, 5.0.0, 5.0.1]. 
    - 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. 
    - 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 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. 
    - 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]. 

我嘗試搜索在互聯網上,但仍無法修復,我使用XAMPP和MacOS塞拉利昂運行,我已經嘗試過:

php -i | grep "SSL Version" 
SSL Version => SecureTransport 
rm /usr/local/bin/openssl 
sudo ln -s /usr/local/Cellar/openssl/1.0.2j/bin/openssl /usr/local/bin/openssl 
sudo chown root:wheel /usr/local 

但它仍然

php -i | grep "SSL Version" 
SSL Version => SecureTransport 

我嘗試另一種選擇:

brew link openssl --force Warning: Refusing to link: openssl Linking keg-only openssl means you may end up linking against the insecure, deprecated system OpenSSL while using the headers from Homebrew's openssl. Instead, pass the full include/library paths to your compiler e.g.: -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib 

我檢查了我的OpenSSL版本:

openssl OpenSSL> version OpenSSL 1.0.2j 26 Sep 2016 

而與此也嘗試:

ls -lash /usr/local/bin/openssl 8 lrwxr-xr-x 1 root admin 44B Oct 20 01:18 /usr/local/bin/openssl -> /usr/local/Cellar/openssl/1.0.2j/bin/openssl and ls -lash /usr/local/Cellar/openssl/1.0.2j/bin/openssl 1064 -r-xr-xr-x 1 aryo admin 528K Oct 19 17:38 /usr/local/Cellar/openssl/1.0.2j/bin/openssl 
ln -s /usr/local/Cellar/openssl/1.0.2j/bin/openssl /usr/local/bin/openssl ln: /usr/local/bin/openssl: File exists 
+0

你可能需要'openssl-devel' – user3788685

+0

我不確定tbh - 看起來事情有點混亂。它看起來像你有不止一個版本安裝,但路徑或鏈接可能會被破壞/錯誤 - 這是我的遺憾。這個鏈接可能有幫助; http://apple.stackexchange.com/questions/126830/how-to-upgrade-openssl-in-os-x – user3788685

+0

看看那個文件 - 它是一個'真正'的文件或(死)鏈接? – user3788685

回答

0

這是MacOS的塞拉利昂的問題。同樣的事情發生在我身上。我升級到Sierra,然後我的整個開發環境都出現了類似的錯誤。我不得不降級到埃爾卡皮坦。

+0

我已經降級但問題仍然存在 – Oyra

0

問題是,MacOS Sierra使用作曲家未正確檢測到的「原生OpenSSL」實現。您可以通過執行以下命令行驗證:

php -i | grep OpenSSL 

如果你看到LibreSSL然後嘗試使用自制重新編譯的OpenSSL:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 
brew tap homebrew/dupes 
brew tap homebrew/versions 
brew tap homebrew/php 
brew install curl --with-libssh2 --with-openssl 

現在你的OpenSSL實現應該是OpenSSLnamshi/jose安裝應工作正常。您可以看到關於此主題的討論on my Jose project