gvm icon indicating copy to clipboard operation
gvm copied to clipboard

ERROR: Unrecognized Go version

Open jackzampolin opened this issue 9 years ago • 16 comments

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

jackzampolin avatar Sep 22 '15 21:09 jackzampolin

Same error I'm using docker ubuntu latest. Go Version Manager v1.0.22 installed at /home/user/.gvm

matthewjosephtaylor avatar Oct 05 '15 00:10 matthewjosephtaylor

I'm having the same error, any idea? thanks in advance

Zilev avatar Oct 06 '15 18:10 Zilev

gvm install go1.4.2 gvm use go1.4.2

it's works for me

AlexAznar avatar Oct 19 '15 10:10 AlexAznar

sunloverz avatar Oct 26 '15 08:10 sunloverz

Specifying the default version should help

gvm use go1.7.4 --default

mezoni avatar Jan 07 '17 08:01 mezoni

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.

lestrrat avatar Jan 22 '18 22:01 lestrrat

Not sure if this is still an issue but I plan on looking into it.

BenKnigge avatar Feb 04 '20 05:02 BenKnigge

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....

migueleliasweb avatar Mar 29 '20 04:03 migueleliasweb

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

besteffects avatar Jun 09 '20 07:06 besteffects

Tried with go1.14.4 and go1.4.2

besteffects avatar Jun 09 '20 07:06 besteffects

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).

pmalek avatar Aug 12 '20 08:08 pmalek

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

pakistancan avatar Apr 12 '21 14:04 pakistancan

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

stevem995 avatar Jul 06 '21 13:07 stevem995

Still works for me using what I've proposed in #354

pmalek avatar Jul 06 '21 13:07 pmalek

@stevem995 can you please check log and see what went wrong?

pakistancan avatar Jul 06 '21 17:07 pakistancan

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.

stevem995 avatar Jul 07 '21 02:07 stevem995

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.

austincunningham avatar Jan 12 '24 15:01 austincunningham