-
Notifications
You must be signed in to change notification settings - Fork 900
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
Can't compile: Unable to detect OpenSSL version #1518
Comments
Uh, I have the same error. Trying to install a crate called Edit: Can anyone confirm that this is not a Arch Linux only compilation error? Maybe the PKGBUILD has some errors. |
Got same issue on ArchLinux when installing
Yet, OpenSSL is installed:
|
make sure to downgrade your OpenSSL installation. I reverted to an old version from 2018/08/15 and it worked. Looks like the new OpenSSL 1.1.1 versions are incompatible with rust-openssl < 0.10.0 iirc. |
I don't think downgrading openssl is a good idea in general. |
It isn't, but as long as the crates don't upgrade their rust-openssl dependency (which is actually a breaking change iirc) there is not really another choice as far as I could tell. Edit: I'm not an Arch Linux expert but it might be possible to have to separate OpenSSL versions installed without colliding them. So that tools use the new one but rust gets compiled with the old one. I've read somewhere that you can pass a OPENSSL_PATH env variable but I am not sure if that still works. Compiling and installing the older OpenSSL version to another directory and linking against that one should make it work on your machine. Not sure how to do it if it has to be on a production PC. |
I think this is what the openssl "vendored" feature is for - see https://github.com/sfackler/rust-openssl/tree/master/openssl#vendored I'm not sure how to enable it for this scenario though, possibly just |
@joelgallant Ah nice catch! I will try to compile it with that option enabled. It shouldn't be much of a problem for development binaries/dependencies for local usage. Thanks for the hint! |
This is should be fixed after upgrading the version of I am working on this currently. |
- reqwest 0.9, fix rust-lang#1518
- reqwest 0.9, fix rust-lang#1518 - hyper 0.12
but which version should be degraded to ? |
@leemaster This has been resolved for over two years. What are you asking about? |
I'm getting this trying to compile 1.14.0:
My rust is 1.29.0 and my openssl is 1.1.1. This is on Arch Linux.
The text was updated successfully, but these errors were encountered: