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

Unable to install GVM #498

Open
shaheermir opened this issue Dec 4, 2024 · 2 comments
Open

Unable to install GVM #498

shaheermir opened this issue Dec 4, 2024 · 2 comments

Comments

@shaheermir
Copy link

Trying to install on macOS Sonoma 14.6.1.

zsh < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
Cloning from https://github.com/moovweb/gvm.git to /Users/shaheer/.gvm
zsh: = not found

I see it pulls down and places the GVM repo in my $HOME directory. I also see my .zshrc got updated w/

[[ -s "/Users/shaheer/.gvm/scripts/gvm" ]] && source "/Users/shaheer/.gvm/scripts/gvm"

But I am unable to access gvm in any way. Throws command not found everytime.

@ayush723
Copy link

ayush723 commented Dec 7, 2024

To resolve the issue, try running the following command instead:

/bin/bash < <(curl -sSL https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)  

This will clone the GVM repository to your $HOME directory, detect your macOS environment, and configure the GVM installation properly. Upon successful installation, you should see output similar to the following:

Cloning from https://github.com/moovweb/gvm.git to $HOME/.gvm
macOS detected. User shell is: /bin/zsh
No existing Go versions detected
Installed GVM v1.0.22

Final Steps:

  • Restart your terminal session to ensure the environment variables are properly loaded.
    Or simply do:
source $HOME/.gvm/scripts/gvm

@amass01
Copy link

amass01 commented Dec 11, 2024

To resolve the issue, try running the following command instead:

/bin/bash < <(curl -sSL https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)  

This will clone the GVM repository to your $HOME directory, detect your macOS environment, and configure the GVM installation properly. Upon successful installation, you should see output similar to the following:

Cloning from https://github.com/moovweb/gvm.git to $HOME/.gvm
macOS detected. User shell is: /bin/zsh
No existing Go versions detected
Installed GVM v1.0.22

Final Steps:

  • Restart your terminal session to ensure the environment variables are properly loaded.
    Or simply do:
source $HOME/.gvm/scripts/gvm

the install command fails if you install using bash and run in zsh

here is the solution, should install older version of the script:
#483 (comment)

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

No branches or pull requests

3 participants