Skip to content

Unable to run rust-analyzer on Ubuntu 18.04: version `GLIBC_2.29' not found #11584

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

Closed
ceronman opened this issue Feb 28, 2022 · 1 comment
Closed

Comments

@ceronman
Copy link

Hello rust-analyzer devs!

As of 2022-02-28 the released binary of rust-analyzer for linux glibc (rust-analyzer-x86_64-unknown-linux-gnu.gz) is requiring a glibc version greater or equal to 2.29. Unfortunately, Ubuntu 18.04 only has up to glibc 2.27 and there is no easy way of updating glibc.

A lot of people are still using 18.04 as it is an LTS version supported until 2023. I'm wondering if it would be possible to keep building rust-analyzer with glibc 2.27 compatibility for a while, unless there is something essential in the newer versions.

Here is an easy way to test this using docker:

$ docker pull ubuntu:18.04
$ docker run -it ubuntu:18.04
root@cd61d9bf6f69:/# apt-get update
root@cd61d9bf6f69:/# apt-get install wget
root@cd61d9bf6f69:/# wget https://github.com/rust-analyzer/rust-analyzer/releases/download/2022-02-28/rust-analyzer-x86_64-unknown-linux-gnu.gz
root@cd61d9bf6f69:/# gunzip rust-analyzer-x86_64-unknown-linux-gnu.gz
root@cd61d9bf6f69:/# chmod + x rust-analyzer-x86_64-unknown-linux-gnu
root@cd61d9bf6f69:/# ./rust-analyzer-x86_64-unknown-linux-gnu --version
./rust-analyzer-x86_64-unknown-linux-gnu: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.29' not found (required by ./rust-analyzer-x86_64-unknown-linux-gnu)
./rust-analyzer-x86_64-unknown-linux-gnu: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by ./rust-analyzer-x86_64-unknown-linux-gnu)
@ceronman
Copy link
Author

Sorry duplicate of 11558

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

1 participant