koute / polkavm

A fast and secure RISC-V based virtual machine
Apache License 2.0
244 stars 52 forks source link

cargo: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory #121

Open lrettig opened 5 months ago

lrettig commented 5 months ago

I'm getting this error when trying to run some of the scripts on ubuntu, e.g.:

ubuntu@legal-redbird:~/polkavm$ ./ci/jobs/rustfmt.sh
>> cargo fmt
>> cargo fmt (zygote)
>> cargo fmt (guests)
/home/ubuntu/.rustup/toolchains/riscv32em-nightly-2024-01-05-r0-x86_64-unknown-linux-gnu/bin/cargo: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
ubuntu@legal-redbird:~/polkavm$ cd guest-programs
ubuntu@legal-redbird:~/polkavm/guest-programs$ ./build-test-data.sh
> Building: 'bench-pinky' (-> ../test-data/bench-pinky.elf.zst)
/home/ubuntu/.rustup/toolchains/riscv32em-nightly-2024-01-05-r0-x86_64-unknown-linux-gnu/bin/cargo: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
ubuntu@legal-redbird:~$ uname -a
Linux legal-redbird 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
ubuntu@legal-redbird:~$ cat /etc/os-release
PRETTY_NAME="Ubuntu 24.04 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04 LTS (Noble Numbat)"

I worked around this by following these steps.

xlc commented 5 months ago

Duplicated to https://github.com/paritytech/rustc-rv32e-toolchain/issues/25