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

[cd, ls] [ERROR] Could not find glibc (but it's already installed properly) #2432

Open
2 of 3 tasks
nguyenvulong opened this issue Aug 7, 2024 · 2 comments
Open
2 of 3 tasks

Comments

@nguyenvulong
Copy link

nguyenvulong commented Aug 7, 2024

Sanity checks

  • My issue relates to a specific CLI completion spec (e.g. git checkout is missing options in git completion spec). If your issue is more general, please create your issue here: withfig/fig
  • I have searched github.com/withfig/autocomplete/issues and there are no duplicates of my issue
  • I would like to work on this.

What CLI tool does this relate to?

cd, ls

Which statement makes the most sense?

There is a bug with this completion spec

Issue Details

after downloading q on my remote ssh machine, the installation did not work. The glibc was already installed.
I already referred to the installation guide here

❯ ldd --version

ldd (Ubuntu GLIBC 2.35-0ubuntu3.8) 2.35
Copyright (C) 2022 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.


❯ ./q/install.sh
[ERROR] Could not find glibc.
[ERROR] This release built for a GNU system with glibc 2.34 or newer, try installing the musl version of the CLI.
@antonsizikov
Copy link

I had same issue on my Ubuntu 22.04.5 servers.
I solve it by editing q/install.sh.

  1. In check_glibc_version function i add condition with my actual path to glibc:
    elif [ -f /lib/x86_64-linux-gnu/libc.so.6 ]; then
        LIBC_PATH=/lib/x86_64-linux-gnu/libc.so.6
  1. in glibc_version line I replaced (GNU libc) with (.*) to fit my version output:
glibc_version=$("$LIBC_PATH" | sed -n 's/^GNU C Library (.*) stable release version \([0-9]*\)\.\([0-9]*\).*$/\1.\2/p')

@nguyenvulong
Copy link
Author

for those who are also searching for the fix,
have a look at https://www.warp.dev
it's more complete, and free for casual use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants