Skip to content
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

cargo: /lib/x86_64-linux-gnu/libssl.so.3: version `OPENSSL_3.2.0' not found (required by cargo) #221

Closed
eigmax opened this issue Feb 3, 2025 · 2 comments

Comments

@eigmax
Copy link
Member

eigmax commented Feb 3, 2025

If we use the latest toolchain, we may get

curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/zkMIPS/toolchain/refs/heads/main/setup.sh | sh

cargo test -r 
cargo: /lib/x86_64-linux-gnu/libssl.so.3: version `OPENSSL_3.2.0' not found (required by cargo)

A fix works as follow:

wget https://github.com/openssl/openssl/releases/download/openssl-3.3.2/openssl-3.3.2.tar.gz -O openssl-3.3.2.tar.gz
tar -xvzf openssl-3.3.2.tar.gz
cd openssl-3.3.2
./config --prefix=/usr zlib-dynamic --openssldir=/etc/ssl shared
make test
sudo make install
export LD_LIBRARY_PATH=/usr/lib64:$LD_LIBRARY_PATH
@qethu
Copy link
Contributor

qethu commented Feb 7, 2025

Currently, there is no openssl-lib-static packages in Rocky Linux 9.
Let's patchelf bin/cargo and cp libssl into our tarball.

@qethu
Copy link
Contributor

qethu commented Feb 7, 2025

Fixed by: zkMIPS/toolchain@ac4b557

@eigmax eigmax closed this as completed Feb 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants