chipsenkbeil / distant

🚧 (Alpha stage software) Library and tooling that supports remote filesystem and process operations. 🚧
https://distant.dev
578 stars 12 forks source link

GLIBC error? #239

Closed drawnwren closed 5 months ago

drawnwren commented 9 months ago

I'm running archlinux with glibc = 2.3.8 locally. When I install and try to launch distant on ubuntu lts 20.04 (glibc version 2.3.1) I get the following exception:

Caused by:
    Failed to spawn server: ''Last login: Wed Jan 31 20:17:51 2024 from 141.155.131.220
    distant server listen --daemon --host ssh

    (base) ]0;ubuntu@ip: ~[01;32mubuntu@ip-10-0-0-7[00m:[01;34m~[00m$ distant server listen --daemon --host ssh
    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)
    (base) ]0;ubuntu@ip: ~[01;32mubuntu@ip[00m:[01;34m~[00m$
    (base) ]0;ubuntu@ip: ~[01;32mubuntu@ip[00m:[01;34m~[00m$ '
chipsenkbeil commented 9 months ago

distant 0.20.0 was compiled on a machine (via Github action) with a newer version of glibc than Ubuntu 20.04 has available. There's a reference to the issue and generating new builds using older Linux.

In the meantime, you can:

  1. switch on Ubuntu from the distant build using glibc to the build using musl, which should remove the glibc dependency issue you're running into. musl release binary
  2. compile distant on Ubuntu directly, which should then support that version of glibc
github-actions[bot] commented 4 months ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.