gvm
gvm copied to clipboard
Unsuccessful install on OS X for zsh and bash
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!
@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 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.
Same issue for me; no instructions to add any shell scripts anywhere.
same to me