-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: linking with cc
failed: exit code: 1 -- when creating a session
#23
Comments
Hm this looks like ssh2 is getting confused with openssl installed both via homebrew and present on the system. How'd you install openssl in homebrew? |
brew install openssl
brew link openssl --force Prior to installing a newer version of openssl via homebrew I was getting a different build error (when trying to compile ssh2 or one of its dependencies) which is why I installed the homebrew version. |
I'm not sure of the best way to solve this unfortunately, what's happening is that zlib is installed in /usr/lib, so there's a What were the original build errors you were seeing? |
After
|
Turns out I had to brew install libssh2
brew install openssl
brew link --force openssl |
Aha! It shouldn't actually be necessary to install Also the error you're getting otherwise is currently tracked at sfackler/rust-openssl#255 which is an unfortunate artifact of OSX removing the OpenSSL headers in 10.11 apparently. Once that issue is fixed though this should just fall out! |
Gotcha, that makes sense. Until that's been resolved I'll use this workaround. Thanks! 👍 |
I fixed this by deleting the target directory from the cargo projects root and running cargo run. This forces a recompile of all source files and crates. This has resolved the CC linking issue for me several times. |
I'm trying to create a new Session:
Whenever the compiler gets to:
I receive the following output/error:
Any idea what might be causing this? I'm running OSX 10.11.
Thanks!
The text was updated successfully, but these errors were encountered: