chipsenkbeil / distant.nvim

🚧 (Alpha stage software) Edit files, run programs, and work with LSP on a remote machine from the comfort of your local environment 🚧
https://distant.dev
Apache License 2.0
1.17k stars 10 forks source link

Running `distant` returns GLIBC error #118

Open airpods69 opened 1 year ago

airpods69 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

Edit: It works.

airpods69 commented 1 year ago

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 commented 1 year ago

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?