astra-cli icon indicating copy to clipboard operation
astra-cli copied to clipboard

[BUG] linux installation instruction doesn't work on arm64 linux

Open weideng1 opened this issue 1 year ago • 1 comments
trafficstars

Describe the bug

Following the instructions here can get astra-cli installed, but it's not the right binary.

To Reproduce

Steps to reproduce the behavior:

  1. On a arm64 Mac, install Ubuntu VM:
multipass launch --name quick-ubuntu
multipass shell quick-ubuntu
apt-get install unzip
  1. Run the following command to install astra-cli:
curl -Ls "https://dtsx.io/get-astra-cli" | bash
  1. exit the shell and re-enter and run astra command, you will get the following error:
ubuntu@quick-ubuntu:~$ astra
-bash: /home/ubuntu/.astra/cli/astra: cannot execute binary file: Exec format error

ubuntu@quick-ubuntu:~$ file `which astra`
/home/ubuntu/.astra/cli/astra: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=3ccff395f3802f6cde2c92cb155ad1f109b5541c, for GNU/Linux 3.2.0, with debug_info, not stripped

Expected behavior astra installation for linux should get the correct binary installed, regardless of arch.

Desktop (please complete the following information):

  • OS: MacOS arm64 using multipass VM from Canonical
  • Version 0.5

weideng1 avatar Nov 16 '24 18:11 weideng1

Scripts have been updated to support different ARCH (x86_64 and arm64) both with homebrew and the CURL command.

The challenge with LinuxARM64 is that I cannot access a machine with this architecture to build the deliverable.

https://github.com/datastax/astra-cli/blob/main/src/main/dist/astra-install.sh#L89-L96

clun avatar Jan 17 '25 10:01 clun