Open lxe opened 3 months ago
@ashleygwilliams do you know what may be causing this?
This is happening probably because I have OpenSSL3, but crate wants system to have OpenSSL1.1
Ubuntu 22.04 doesn't have OpenSSL1.1 in the repository, so I installed it manually:
$ wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb
sudo dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb
Now I get a different error:
$ mistralrs-server
mistralrs-server: /lib/x86_64-linux-gnu/libssl.so.1.1: version `OPENSSL_1_1_1' not found (required by mistralrs-server)
I'll just build it from source 🤷
Ok, thanks for the useful information. I looped in a maintainer of the library we use to create the prebuilt binaries, hopefully they can help!
@lxe was building from source successful?
@EricLBuehler yup no issues!
@EricLBuehler I see the project uses reqwest. If I were you, I'd just enable reqwest's rustls-tls
feature:
https://docs.rs/reqwest/0.12.4/reqwest/index.html#optional-features
That way you don't need to rely on openssl at all. I'd consider enabling rustls-tls-webpki-roots
too which uses this:
https://crates.io/crates/webpki-roots
EDIT: ahh it looks like hf-hub
is going to be a problem.
Yeah, that's the reason. I considered forking hf-hub
and modifying that to use rustls
, but don't think it's worth it.
Hey, I was able to get it working by installing the libssl like this:
wget http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.23_amd64.deb
sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.23_amd64.deb
If the link is expired then you can find the new one from: http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/?C=M;O=D
Just look for libssl1.1_1.1.1f-1ubuntu2.<LATEST_VERSION>_amd64.deb
To avoid this altogether I usually just bundle openssl into the binary:
[dependencies]
openssl = { version = "0.10.59", features = ["vendored"] }
Describe the bug
Pre-built binary for linux fails to launch with
Reproduction steps:
I already have libssl-dev:
System info: