brew install libssh2
error 'libssh2: Failed to download resource "libssh2.rb"'
#5724
Replies: 3 comments 11 replies
-
Can you give the full output of the command? |
Beta Was this translation helpful? Give feedback.
-
Output from command Output from command Error: libssh2: Failed to download resource "libssh2.rb" |
Beta Was this translation helpful? Give feedback.
-
Add the correct My added line is: Will close this thread. |
Beta Was this translation helpful? Give feedback.
-
Output of
brew config
Output of
brew doctor
Description of issue
I am installing libssh2.
First,
brew install libssh2
returned error message:Error: libssh2: Failed to download resource "libssh2.rb" Download failed: https://raw.githubusercontent.com/Homebrew/homebrew-core/0d27f082f92021422f36a291d3795c8e59ea7eda/Formula/lib/libssh2.rb
Then, I configured libssh2 locally, the files are configured to
/usr/local/lib/
. However,brew info libssh2
returned message:==> libssh2: stable 1.11.1, HEAD C library implementing the SSH2 protocol https://libssh2.org/ Not installed From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/lib/libssh2.rb License: BSD-3-Clause ==> Dependencies Required: openssl@3 ✔ ==> Options --HEAD Install HEAD version ==> Analytics install: 89,366 (30 days), 163,824 (90 days), 551,599 (365 days) install-on-request: 11,827 (30 days), 14,175 (90 days), 59,860 (365 days) build-error: 31 (30 days)
Lastly, I tried to fetch libssh2 first and then install it:
brew fetch --debug --verbose libssh2
, this command successfully downloadedlibssh2.tar.gz
file.brew install libssh2
still failed and returned the same error message.Appreciate any suggestions.
Beta Was this translation helpful? Give feedback.
All reactions