Error 9
Full steps to reproduce the issue:
- 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."
Forgot to add, I'm running macOS 14.5 beta 3 and using iTerm2 with latest version of Homebrew.
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.
uname -m && uname -sto confirm architecture and OS (in my case, output is "arm64 Darwin")- 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." - 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
- 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/ - Alias gam to run it as an executable in your shell profile file:
echo $SHELLreturns/bin/zshfor me, so I added this line under my other aliases in~/.zshrc:alias gam='/usr/local/bin/gam/gam' - Don't forget to
source ~/.zshrcor exit and reopen your terminal gam -hshould 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.
Amazing. Thank you. Had a few zsh and bin issues along the way but worked it out.
Thanks for your support
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.