gvm icon indicating copy to clipboard operation
gvm copied to clipboard

Unsuccessful install on OS X for zsh and bash

Open mbbroberg opened this issue 8 years ago • 4 comments

Without previously installing gvm, I ran:

bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)

I have zsh as my default, so I then ran:

zsh < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)

Which errors with: ERROR: Already installed!. Neither zsh nor bash have gvm available to run. What's going wrong here?

For reference, I run oh-my-zsh and I'm on go version go1.5.1 darwin/amd64. Thanks!

mbbroberg avatar Jan 20 '16 07:01 mbbroberg

@mjbrender Did you run this in your terminal after installing gvm?? source $HOME/.gvm/scripts/gvm

The installer expects you to run that in your terminal session, or to close all open terminals and re-open to use gvm.

cmosetick avatar Jan 23 '16 00:01 cmosetick

@cmosetick thanks. I did close all terminals and re-opened. It seemed the install script has trouble adding source in my oh-my-zsh configuration. I have since solved the problem by adding it to my sourced paths (which I load indirectly through .zshrc). The issues I can be sure of are:

1 - There was no error on installation, just the message above when I reran it. I'm not certain why this didn't execute:

if [ -z "$GVM_NO_UPDATE_PROFILE" ] && [ "$?" != "0" ]; then
    echo "Unable to locate profile settings file(Something like $HOME/.bashrc or $HOME/.bash_profile)"
    echo
    echo " You will have to manually add the following line:"
    echo
    echo "  $source_line"
    echo
fi

2 - There was nothing written to my .zshrc file.

This behavior may be rare, which is why I wanted to document it happening in my case. Glad to help narrow in on it too.

mbbroberg avatar Jan 24 '16 03:01 mbbroberg

Same issue for me; no instructions to add any shell scripts anywhere.

brendensoares avatar Mar 20 '20 16:03 brendensoares

same to me

NoraGithub avatar Jan 17 '22 15:01 NoraGithub