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

I get a GLIBC error on Ubuntu 20 #9

Closed
ethereumdegen opened this issue Sep 29, 2023 · 4 comments
Closed

I get a GLIBC error on Ubuntu 20 #9

ethereumdegen opened this issue Sep 29, 2023 · 4 comments

Comments

@ethereumdegen
Copy link

ethereumdegen commented Sep 29, 2023

/libc.so.6: version `GLIBC_2.34' not found

when trying to run help with teh binary

@secretshardul
Copy link
Contributor

Error on ser --help? Can you tell me about your

  • Servicer version (ser --version)
  • Operating system
  • Did install the binary or built from source with cargo?

@rizrmd
Copy link

rizrmd commented Oct 5, 2023

I had same issue,
ubuntu 20.04 by default has glibc 2.31. You can upgrade it using:

apt-get install gawk bison gcc make -y
wget -c https://ftp.gnu.org/gnu/glibc/glibc-2.34.tar.gz
tar -zxvf glibc-2.34.tar.gz && cd glibc-2.34
mkdir glibc-build && cd glibc-build
../configure --prefix=/opt/glibc
make
make install

@rizrmd
Copy link

rizrmd commented Oct 5, 2023

But I hope servicer has binary compiled with glibc 2.31. So I don't have to install entire rust toolchain or upgrading my glibc.

@secretshardul
Copy link
Contributor

The compiled binary picks the libc version from the system where the code was compiled. GLIBC_2.34 could be coming from the Github worker. @ethereumdegen @rizrmd can you try building from source using cargo install servicer?

From stackoverflow

Per the issue: rust-lang/rust#57497 - there's no way to tell the Rust compiler to link a different library other than the one installed on the system.

This means I have to compile the binary on a system that has a less recent version of libc6 installed...

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

3 participants