Issue with install.sh: Could not find glibc and Manual Installation Steps #247
Unanswered
hjm79
asked this question in
Support ticket
Replies: 2 comments 2 replies
-
I get this same error on Ubuntu 23.10 on AArch64 (Raspberry Pi 4 Model B Rev 1.4). Running the q binary directly from the install folder triggers an illegal instruction trap. Fig worked just fine before. Also getting this error with Debian 11 (bullseye) on x86_64 in an LXC container on top of Proxmox. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I made a few changes to ...
check_glibc_version() {
if [ -f /lib64/libc.so.6 ]; then
LIBC_PATH=/lib64/libc.so.6
elif [ -f /lib/libc.so.6 ]; then
LIBC_PATH=/lib/libc.so.6
# added this elif based on where libc.so.6 is in ubuntu
elif [ -f /lib/x86_64-linux-gnu/libc.so.6 ]; then
LIBC_PATH=/lib/x86_64-linux-gnu/libc.so.6
else
log_error "Could not find glibc."
return 1
fi # update the sed parsing to correctly get the glibc version
glibc_version=$("$LIBC_PATH" | sed -n 's/^GNU C Library .* stable release version \([0-9]*\)\.\([0-9]*\).*$/\1.\2/p') |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Checks
q doctor
in the affected command line session and it didn't resolve my issueq restart
and it didn't resolve my issueExpected behaviour
I encountered an issue while trying to install the Amazon Q CLI on my Ubuntu 22.04 system using the provided install.sh script. The installation failed due to a glibc version compatibility issue. Below are the details of the error and the steps I took to manually install the CLI.
Error Message:
[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.
Actual behaviour
Steps Taken:
Attempted Installation Using install.sh:
Ran the install.sh script, which failed with the above error.
The script could not locate the glibc version, even though my system meets the requirement (glibc 2.35).
Manual Installation:
Downloaded the Amazon Q CLI zip file.
Extracted the files and manually copied the q and qterm binaries to the /bin directory.
Updated my .zshrc file to include the necessary pre and post integration blocks:
Amazon Q pre block. Keep at the top of this file.
[[ -f "${HOME}/.local/share/amazon-q/shell/zshrc.pre.zsh" ]] && builtin source "${HOME}/.local/share/amazon-q/shell/zshrc.pre.zsh"
export Q_TERM="qterm"
Amazon Q post block. Keep at the bottom of this file.
[[ -f "${HOME}/.local/share/amazon-q/shell/zshrc.post.zsh" ]] && builtin source "${HOME}/.local/share/amazon-q/shell/zshrc.post.zsh"
Restarted the terminal and manually started qterm.
Current Issue:
Despite setting everything up, running q doctor still indicates that qterm is not running or that the terminal is not using the latest integration.
Terminal output:
✘ Amazon Q terminal integrations: qterm is not running in this terminal, please try restarting your terminal
Q_TERM=qterm
Could you please provide guidance on how to resolve this issue? I suspect it might be related to the initial glibc detection failure. Is there a recommended workaround for this?
Thank you for your assistance.
Steps to reproduce
No response
Environment
Beta Was this translation helpful? Give feedback.
All reactions