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

For Ubuntu for example, check first the architekture (x86_64 / aarch64) #4283

Open
Chuck-Serious opened this issue Feb 17, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Chuck-Serious
Copy link

Describe the bug
lazygit won't run: Error: cannot execute binary file: Exec format error

To Reproduce
If you have an aarch64 architecture (uname -m) , try run this as stated under Installation "Ubuntu"

LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | \grep -Po '"tag_name": "v\K[^"]')
curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/download/v${LAZYGIT_VERSION}/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz"
tar xf lazygit.tar.gz lazygit
sudo install lazygit -D -t /usr/local/bin/

Add ARCH=$(uname -m) and the case statement to the installationscript

ARCH=$(uname -m)
case $ARCH in
x86_64) ARCH='Linux_x86_64';;
aarch64 | armv8*) ARCH='Linux_arm64';;
armv7* | armv6*) ARCH='Linux_armv6';;
*) echo "Unsupported architecture: $ARCH"; exit 1;;
esac

suggested installationscript

ARCH=$(uname -m)
case $ARCH in
x86_64) ARCH='Linux_x86_64';;
aarch64 | armv8*) ARCH='Linux_arm64';;
armv7* | armv6*) ARCH='Linux_armv6';;
*) echo "Unsupported architecture: $ARCH"; exit 1;;
esac
LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | \grep -Po '"tag_name": "v\K[^"]')
curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/download/v${LAZYGIT_VERSION}/lazygit_${LAZYGIT_VERSION_${ARCH}.tar.gz"
tar xf lazygit.tar.gz lazygit
sudo install lazygit /usr/local/bin/

Further testing (armv7 / armv6) architecture

I have installed lazygit version 0.46.0 on aarch64.

@Chuck-Serious Chuck-Serious added the bug Something isn't working label Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant