FiloSottile / mkcert

A simple zero-config tool to make locally trusted development certificates with any names you'd like.
https://mkcert.dev
BSD 3-Clause "New" or "Revised" License
50.06k stars 2.62k forks source link

zsh: exec format error: mkcert - After install #519

Open walrussi opened 1 year ago

walrussi commented 1 year ago

Environment

What you did

I tried all install methods for linux but i couldnt get homebrew on my pi running and the same with go.

curl -JLO "https://dl.filippo.io/mkcert/latest?for=linux/amd64"
chmod +x mkcert-v*-linux-amd64
sudo cp mkcert-v*-linux-amd64 /usr/local/bin/mkcert

What went wrong

$ mkcert
$ zsh: exec format error: mkcert 

Thats all the output.

More Device Info:

Neofetch:

  `.::///+:/-.        --///+//-:``    pi@walruspi 
 `+oooooooooooo:   `+oooooooooooo:    ----------- 
  /oooo++//ooooo:  ooooo+//+ooooo.    OS: Raspbian GNU/Linux 11 (bullseye) aarch64 
  `+ooooooo:-:oo-  +o+::/ooooooo:     Host: Raspberry Pi 4 Model B Rev 1.4 
   `:oooooooo+``    `.oooooooo+-      Kernel: 6.1.21-v8+ 
     `:++ooo/.        :+ooo+/.`       Uptime: 4 hours, 44 mins 
        ...`  `.----.` ``..           Packages: 1470 (dpkg) 
     .::::-``:::::::::.`-:::-`        Shell: zsh 5.8 
    -:::-`   .:::::::-`  `-:::-       Terminal: /dev/pts/1 
   `::.  `.--.`  `` `.---.``.::`      CPU: BCM2835 (4) @ 1.800GHz 
       .::::::::`  -::::::::` `       Memory: 241MiB / 3794MiB 
 .::` .:::::::::- `::::::::::``::.
-:::` ::::::::::.  ::::::::::.`:::-                           
::::  -::::::::.   `-::::::::  ::::                           
-::-   .-:::-.``....``.-::-.   -::-
 .. ``       .::::::::.     `..`..
   -:::-`   -::::::::::`  .:::::`
   :::::::` -::::::::::` :::::::.
   .:::::::  -::::::::. ::::::::
    `-:::::`   ..--.`   ::::::.
      `...`  `...--..`  `...`
            .::::::::::
             `.-::::-`
inxi --admin --verbosity=7 --filter --width output:

System:
  Kernel: 6.1.21-v8+ aarch64 bits: 32 compiler: gcc v: 10.2.1 
  parameters: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_headphones=0 
  snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_hdmi=1 
  snd_bcm2835.enable_hdmi=0 smsc95xx.macaddr=E4:5F:01:3B:C2:36 
  vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 console=ttyS0,115200 
  console=tty1 root=PARTUUID=1829078d-02 rootfstype=ext4 fsck.repair=yes 
  rootwait quiet splash plymouth.ignore-serial-consoles 
  Console: tty 1 DM: LightDM 1.26.0 Distro: Raspbian GNU/Linux 11 (bullseye) 
Machine:
  Type: ARM Device System: Raspberry Pi 4 Model B Rev 1.4 details: BCM2835 
  rev: c03114 serial: <filter> 
Memory:
  RAM: total: 3.78 GiB used: 401.6 MiB (10.4%) gpu: 76 MiB 
  RAM Report: unknown-error: Unknown dmidecode error. Unable to generate data. 
CPU:
  Info: Quad Core model: N/A variant: cortex-a72 bits: 64 type: MCP 
  arch: ARMv8 family: 8 model-id: N/A stepping: 3 bogomips: 432 
  Speed: 1800 MHz min/max: 600/1800 MHz Core speeds (MHz): 1: 1800 2: 1800 
  3: 1800 4: 1800 
  Features: asimd cpuid crc32 evtstrm fp 
  Vulnerabilities: Type: itlb_multihit status: Not affected 
  Type: l1tf status: Not affected 
  Type: mds status: Not affected 
  Type: meltdown status: Not affected 
  Type: mmio_stale_data status: Not affected 
  Type: retbleed status: Not affected 
  Type: spec_store_bypass status: Vulnerable 
  Type: spectre_v1 mitigation: __user pointer sanitization 
  Type: spectre_v2 status: Vulnerable 
  Type: srbds status: Not affected 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: bcm2711-hdmi0 driver: vc4_hdmi v: N/A bus ID: N/A 
  chip ID: brcm:fef00700 class ID: hdmi 
  Device-2: bcm2711-hdmi1 driver: vc4_hdmi v: N/A bus ID: N/A 
  chip ID: brcm:fef05700 class ID: hdmi 
  Device-3: bcm2711-vc5 driver: vc4_drm v: N/A bus ID: N/A chip ID: brcm:gpu 
  class ID: gpu 
  Display: server: X.org 1.20.11 compositor: mutter v: 3.38.6 driver: 
  loaded: modesetting unloaded: fbdev tty: 106x48 
  Message: Advanced graphics data unavailable in console. Try -G --display 
Audio:
  Device-1: bcm2711-hdmi0 driver: vc4_hdmi bus ID: N/A chip ID: brcm:fef00700 
  class ID: hdmi 
  Device-2: bcm2711-hdmi1 driver: vc4_hdmi bus ID: N/A chip ID: brcm:fef05700 
  class ID: hdmi 
  Sound Server: ALSA v: k6.1.21-v8+ 
Network:
  Message: No ARM data found for this feature. 
  IF-ID-1: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
  IP v4: <filter> type: dynamic noprefixroute scope: global 
  broadcast: <filter> 
  IP v6: <filter> type: dynamic mngtmpaddr noprefixroute scope: global 
  IP v6: <filter> scope: link 
  IF-ID-2: wlan0 state: down mac: <filter> 
  WAN IP: <filter> 
Bluetooth:
  Message: No Bluetooth data was found. 
RAID:
  Message: No RAID data was found. 
Drives:
  Local Storage: total: 59.48 GiB used: 3.92 GiB (6.6%) 
  SMART Message: Required tool smartctl not installed. Check --recommends 
  ID-1: /dev/mmcblk0 maj-min: 179:0 model: SD64G size: 59.48 GiB block size: 
  physical: 512 B logical: 512 B rotation: SSD serial: <filter> scheme: MBR 
  Message: No Optical or Floppy data was found. 
Partition:
  ID-1: / raw size: 59.22 GiB size: 58.23 GiB (98.32%) used: 3.87 GiB (6.6%) 
  fs: ext4 dev: /dev/mmcblk0p2 maj-min: 179:2 label: rootfs 
  uuid: 996c1b5f-170b-4f38-a5e0-85eef5acf12c 
  ID-2: /boot raw size: 256 MiB size: 255 MiB (99.60%) used: 50.4 MiB (19.8%) 
  fs: vfat dev: /dev/mmcblk0p1 maj-min: 179:1 label: boot uuid: D386-9DE9 
Swap:
  Kernel: swappiness: 60 (default) cache pressure: 100 (default) 
  ID-1: swap-1 type: file size: 100 MiB used: 0 KiB (0.0%) priority: -2 
  file: /var/swap 
Unmounted:
  Message: No Unmounted partitions found. 
USB:
  Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 1 rev: 2.0 
  speed: 480 Mb/s chip ID: 1d6b:0002 class ID: 0900 
  Hub-2: 1-1:2 info: VIA Labs Hub ports: 4 rev: 2.1 speed: 480 Mb/s 
  chip ID: 2109:3431 class ID: 0900 
  Hub-3: 2-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.0 speed: 5 Gb/s 
  chip ID: 1d6b:0003 class ID: 0900 
Sensors:
  System Temperatures: cpu: 57.9 C mobo: N/A 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 188 Uptime: 4h 48m Init: systemd v: 247 runlevel: 5 
  target: graphical.target Compilers: gcc: 10.2.1 alt: 10 Packages: apt: 1479 
  lib: 768 snap: 0 Shell: Zsh v: 5.8 running in: tty 1 (SSH) inxi: 3.3.01 
goldstar611 commented 1 year ago

Operating system (including version): Raspbian GNU/Linux 11 (bullseye) aarch64 and chmod +x mkcert-v*-linux-amd64

That's a non-working combination there. You downloaded the amd64 binary and ran it on an aarch64 OS.

Get the linux-arm64 version ;)