pichibw
February 25, 2024, 9:36am
1
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
jofas
February 25, 2024, 9:48am
2
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.
openssl-dev
/ libssl-dev
(not sure myself, not at the desktop now to check) package rather (for linking)?
2 Likes
jofas
February 25, 2024, 10:40am
5
Of course, great observation
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
pichibw
February 26, 2024, 5:15pm
6
Yes, Debian and Rust work fine together, I recommend it.
Thanks Jofas and others.
system
Closed
May 26, 2024, 5:15pm
7
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.