gvm: Conflict with GVM (Groovy enVironment Manager)

I had installed GVM (Groovy enVironment Manager) in my Ubuntu system.

When I try to install gvm with

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

I get ERROR: Already installed!.

Is there anyway to install gvm without conflicting with GVM?

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 15

Most upvoted comments

I did a PR yesterday to sdkman to get rid of gvm alias all together which got merged and now there should be no conflict anymore.

@TheKojuEffect,

So after you finish installing it to another directory, GVM adds the following directory to your $PATH environment variable:

/directory/where/you/installed/gvm/bin

So in the default case, it’s:

[driti@ubuntu ~]$ ls -al ~/.gvm/bin
total 20
drwxrwxr-x  2 driti driti 4096 Dec  3  2013 .
drwxr-xr-x 15 driti driti 4096 Dec  3  2013 ..
-rwxrwxr-x  1 driti driti 1417 Dec  3  2013 gvm
-rwxrwxr-x  1 driti driti  346 Dec  3  2013 gvm-prompt
-rwxrwxr-x  1 driti driti  898 Dec  3  2013 gvmsudo

So it’s obvious that you’re getting a naming collision with due to gvm, so the easiest work around I can think of is this:

[driti@ubuntu ~]$ ln -s ~/.gvm/bin/gvm ~/.gvm/bin/govm
[driti@ubuntu ~]$ which govm
/home/driti/.gvm/bin/govm
[driti@ubuntu ~]$ govm
Usage: gvm [command]

Description:
  GVM is the Go Version Manager

Commands:
  version    - print the gvm version number
  get        - gets the latest code (for debugging)
  use        - select a go version to use
  diff       - view changes to Go root
  implode    - completely remove gvm
  install    - install go versions
  uninstall  - uninstall go versions
  cross      - install go cross compilers
  linkthis   - link this directory into GOPATH
  list       - list installed go versions
  listall    - list available versions
  alias      - manage go version aliases
  pkgset     - manage go packages sets