Help, compiler error

Hi everyone, the compiler gave me this error, but i dont what dependency ??

error: linking with cc failed: exit status: 1
...
= note: /usr/bin/ld: cannot find -lssl: No such file or directory
/usr/bin/ld: cannot find -lcrypto: No such file or directory
collect2: error: ld returned 1 exit status

Note: i use debian 12

Thanks

Looks like you haven't installed openssl on your system. You can do so by running:

sudo apt update
sudo apt install openssl

AFAIR—been a while since I used a Debian system.

None, already install.

openssl-dev / libssl-dev (not sure myself, not at the desktop now to check) package rather (for linking)? :thinking:

2 Likes

Of course, great observation :+1:


Seems to be libssl-dev by the way, according to the docs of the openssl crate:

# Debian and Ubuntu
sudo apt-get install libssl-dev
1 Like

Yes, Debian and Rust work fine together, I recommend it.

Thanks Jofas and others.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.