Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 9 #1687

Open
kristiankruse opened this issue Apr 29, 2024 · 3 comments
Open

Error 9 #1687

kristiankruse opened this issue Apr 29, 2024 · 3 comments
Assignees
Labels

Comments

@kristiankruse
Copy link

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
Copy link
Author

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

@fiveneins
Copy link

fiveneins commented Apr 30, 2024

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 <jay0lee@gmail.com>
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.

@kristiankruse
Copy link
Author

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

Thanks for your support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants