jpillora / installer

One-liner for installing binaries from Github releases
https://i.jpillora.com/installer
MIT License
206 stars 52 forks source link

Segmentation fault on RPi OS 64 #10

Open nicholaswilde opened 3 years ago

nicholaswilde commented 3 years ago

Expected Behavior

Tried installing Installer on my Raspberry Pi 4 and got an error when trying to run it.

Current Behavior

Get an error when trying to run Installer

$ curl -s https://i.jpillora.com/installer | bash
Downloading jpillora/installer v0.2.7.....
######################################################################## 100.0%#=#=-#  #                ######################################################################## 100.0%
Downloaded to /home/pi/installer
$ ./installer 
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault

Possible Solution

Detect the correct architecture.

Manually downloading and running installer_0.2.7_linux_arm64.gz works.

Steps to Reproduce

  1. $ curl -s https://i.jpillora.com/installer | bash
  2. $ ./installer

Context (Environment)

Hardware: Raspberry Pi 4

$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
$ uname -a
Linux pi-04 5.4.72-v8+ #1356 SMP PREEMPT Thu Oct 22 13:58:52 BST 2020 aarch64 GNU/Linux
$ md5sum installer
2d365aab917f3844cb021ba7b1634e90  installer