GAM icon indicating copy to clipboard operation
GAM copied to clipboard

Error 9

Open kristiankruse opened this issue 1 year ago • 3 comments

Full steps to reproduce the issue:

  1. Entering install command: `bash <(curl -s -S -L https://gam-shortn.appspot.com/gam-install)'

Expected outcome (what are you trying to do?):

  • Have GAM installed

Actual outcome (what errors or bad behavior do you see instead?):

  • I get a number of Pything error codes and then "ERROR: extracting the GAM archive with tar failed with error 9. Exiting."

kristiankruse avatar Apr 29 '24 22:04 kristiankruse

Forgot to add, I'm running macOS 14.5 beta 3 and using iTerm2 with latest version of Homebrew.

kristiankruse avatar Apr 29 '24 22:04 kristiankruse

Hi @kristiankruse, I ran into the same error as you. You probably already figured this out, but it's possible to pull the universal Mac release and install it manually, bypassing the script.

  1. uname -m && uname -s to confirm architecture and OS (in my case, output is "arm64 Darwin")
  2. Grab the asset that corresponds from the Releases page (in our cases, gam-6.58-macos-universal2.tar.xz). Grabbing the wrong file will eventually result in the error "cannot execute binary file."
  3. Did it download to Downloads? If so: tar -xvf ~/Downloads/gam-6.58-macos-universal2.tar.xz
| $ tar -xvf ~/Downloads/gam-6.58-macos-universal2.tar.xz
x gam/
x gam/LICENSE
x gam/gam
x gam/roots.pem
x gam/GamCommands.txt
  1. Move the directory and its contents to /usr/local/bin/ (appropriate for system-wide available scripts, not managed by system packages): sudo mv ~/Downloads/gam /usr/local/bin/
  2. Alias gam to run it as an executable in your shell profile file: echo $SHELL returns /bin/zsh for me, so I added this line under my other aliases in ~/.zshrc: alias gam='/usr/local/bin/gam/gam'
  3. Don't forget to source ~/.zshrc or exit and reopen your terminal
  4. gam -h should now show you that it's installed 🎉
| $ gam -h
GAM 6.58 - https://jaylee.us/gam - pyinstaller
Jay Lee <[email protected]>
Python 3.11.3 64-bit final
google-api-python-client 2.86.0
MacOS  14.5 arm64
Path: /usr/local/bin/gam
...

Hope that gets you unblocked until the bug is addressed. Cheers.

fiveneins avatar Apr 30 '24 22:04 fiveneins

Amazing. Thank you. Had a few zsh and bin issues along the way but worked it out.

Thanks for your support

kristiankruse avatar Apr 30 '24 23:04 kristiankruse

fwiw, GAM7 no longer has a universal2 build. The bash install script just detects if it's an Intel or Arm CPU and downloads/isntalls the correct GAM binaries.

Closing for now but feel free to re-open an issue if you are still seeing install issues.

jay0lee avatar Oct 03 '24 09:10 jay0lee