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

Running distant returns GLIBC error #118

Open
airpods69 opened this issue Aug 22, 2023 · 5 comments
Open

Running distant returns GLIBC error #118

airpods69 opened this issue Aug 22, 2023 · 5 comments

Comments

@airpods69
Copy link

airpods69 commented Aug 22, 2023

Running anything related to distant causes it to freak out on the server and it spams the "not found" error like no tomorrow.

Lemme know what additional details you wanna know.

~ distant
distant: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.29' not found (required by distant)
distant: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by distant)
distant: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by distant)
distant: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by distant)
distant: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by distant)
@airpods69
Copy link
Author

I think I can see what is up.
ldd version seems to be lower than what is required by distant

~ ldd --version
ldd (Ubuntu GLIBC 2.27-3ubuntu1.6) 2.27
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.

@chipsenkbeil
Copy link
Owner

chipsenkbeil commented Aug 23, 2023

Yes, you're not the first to be bit by this. The version of Rust used is fairly new, which I think is pushing the libc version up.

The alternative is to use the musl version instead of the gnu version. I've done that on a variety of Linux platforms and that got around the glibc version issue.

https://github.com/chipsenkbeil/distant/releases/download/v0.20.0/distant-x86_64-unknown-linux-musl

You should be able to do something like this on the server:

curl -L https://sh.distant.dev | sh -s -- --distant-host 'x86_64-unknown-linux-musl'

@airpods69
Copy link
Author

airpods69 commented Aug 23, 2023

ahh that would make a hell lotta sense, I'll try it out and let you know

Edit: It works.

@airpods69
Copy link
Author

Question:
Do I have to install the musl version on my local machine as well? (It seems to be crying about Incompatible version but no logs)

@chipsenkbeil
Copy link
Owner

You don't have to install the same version on your local machine. You can run a Windows version of distant connecting to a FreeBSD version without issue.

What incompatible version error are you hitting? Can you share more details?

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