gvm
gvm copied to clipboard
ERROR: Unrecognized Go version
I have installed gvm using:
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
After restarting my terminal I try to use:
gvm install go1.4
and get the following output:
Downloading Go source...
Updating Go source...
ERROR: Unrecognized Go version
GVM is v1.0.22. I have mercurial installed on my system as well as xcode dev-tools
Same error I'm using docker ubuntu latest. Go Version Manager v1.0.22 installed at /home/user/.gvm
I'm having the same error, any idea? thanks in advance
gvm install go1.4.2 gvm use go1.4.2
it's works for me
Specifying the default version should help
gvm use go1.7.4 --default
FYI, this just happened to me. After a little digging around I did
cd ~/.gvm/archive/go
git pull --tags
Then after tags were pulled in, gvm install go1.9.3
worked.
Not sure if this is still an issue but I plan on looking into it.
Still doesn't work for me =/
$ gvm install 1.4
Updating Go source...
ERROR: Unrecognized Go version
$ gvm install go1.4.2
Installing go1.4.2...
* Compiling...
/root/.gvm/scripts/install: line 84: go: command not found
ERROR: Failed to compile. Check the logs at /root/.gvm/logs/go-go1.4.2-compile.log
ERROR: Failed to use installed version
I was testing this inside a debian container before comitting to install in my system....
log: /Users/1/.gvm/gos/go1.4.2/src/cmd/6l/../ld/dwarf.c:1479:15: error: implicit conversion from 'int' to 'char' changes value from 156 to -100 [-Werror,-Wconstant-conversion] /Users/1/.gvm/gos/go1.4.2/src/cmd/6l/../ld/dwarf.c:1763:21: error: implicit conversion from 'int' to 'char' changes value from 144 to -112 [-Werror,-Wconstant-conversion] /Users/1/.gvm/gos/go1.4.2/src/cmd/6l/../ld/lib.h:168:13: note: expanded from macro 'cput' go tool dist: FAILED: clang -Wall -Wstrict-prototypes -Wextra -Wunused -Wno-sign-compare -Wno-missing-braces -Wno-parentheses -Wno-unknown-pragmas -Wno-switch -Wno-comment -Wno-missing-field-initializers -Werror -fno-common -ggdb -pipe -Wuninitialized -O2 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -mmacosx-version-min=10.6 -c -m64 -I /Users/1/.gvm/gos/go1.4.2/include -I /Users/1/.gvm/gos/go1.4.2/src/cmd/6l -o /Users/1/.gvm/gos/go1.4.2/pkg/obj/cmd/6l/dwarf.o /Users/1/.gvm/gos/go1.4.2/src/cmd/6l/../ld/dwarf.c
Tried with go1.14.4 and go1.4.2
Please take a look at https://github.com/moovweb/gvm/pull/354. I've also had this problem but this small patch seemed to have fixed it (TLDR: when installing new version it runs git pull
without --tags
hence not downloading new release tags).
check if GREP_OPTIONS
is set to --color=always
, either set this to --color=never
or
edit following scripts
~/.gvm/scripts/install
~/.gvm/scripts/env/use
and add --color=never
to all the places where $GREP_PATH
is used
Still broken on mac....
gvm install go1.16.5 Installing go1.16.5...
- Compiling... /Users/XXXXXXX/.gvm/scripts/install: line 84: go: command not found ERROR: Failed to compile. Check the logs at /Users/XXXXXXX/.gvm/logs/go-go1.16.5-compile.log ERROR: Failed to use installed version
Still works for me using what I've proposed in #354
@stevem995 can you please check log and see what went wrong?
I lost home internet. Will try to check tomorrow.
On July 6, 2021 1:51:48 PM EDT, Ali @.> wrote: @. can you please check log and see what went wrong?
-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/moovweb/gvm/issues/160#issuecomment-874963069
-- Sent from my Android device with K-9 Mail. Please excuse my brevity.
New machine was hitting the same issues with gvm v1.0.22, depending on the go version .
As there was no go on the sytem, installed the initial version https://go.dev/doc/install and gvm install
started to function after that.