-
Notifications
You must be signed in to change notification settings - Fork 1
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
libssl.so.3: cannot open shared object file #6
Comments
From StackOverflow by Steve Klabnik: "Rust statically links everything but glibc (and libgcc, iirc) by default. If you want to get a 100% statically linked binary, you can use MUSL with 1.1. rust-lang/rust#24777 is the initial support, we hope to make it much easier to use in the future. |
Also from Kornel: openssl-sys and other openssl-dependent crates have vendored-openssl Cargo feature that you can enable and this usually helps with this particular dependency. |
The openssl errors can be fixed by using the openssl = { version = "0.10.59", features = ["vendored"] } |
However! Now there are errors linking to GLIBC on older systems (ex. CentOS 7).
objdump -T target/x86_64-unknown-linux-gnu/release/rebar | tail -n+5 | cut -f 2 | cut -d " " -f 2- | sort
|
Resolved with 5dd2ec7 by using the cross crate and comping for MUSL! |
Now that we're in the land of compiled languages (Rust) it's type to troubleshoot dynamic library linking on other systems.
The text was updated successfully, but these errors were encountered: