moovweb / gvm

Go Version Manager
http://github.com/moovweb/gvm
MIT License
10.32k stars 538 forks source link

mac install go 1.13 is failed #327

Open lbtsm opened 5 years ago

lbtsm commented 5 years ago
gvm install go1.13
Downloading Go source...
ERROR: Couldn't download Go source. Check the logs /Users/mcj/.gvm/logs/go-download.log
➜  ~ tail -f /Users/mcj/.gvm/logs/go-download.log
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
Cloning into '/Users/mcj/.gvm/archive/go'...
Cloning into '/Users/mcj/.gvm/archive/go'...
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 60
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
chenrui333 commented 5 years ago

error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 60

Sounds like GFW issue. My installation works just fine.

BainDragneel commented 5 years ago

I am experiencing the same problem

wilsonmar commented 5 years ago

I get this error message running gvm install 1.4.2

Downloading Go source... Installing go1.4... * Compiling... ERROR: Failed to compile. Check the logs at /Users/wilsonmar/.gvm/logs/go-go1.4-compile.log ERROR: Failed to use installed version ---------------------- The log contents: # Building C bootstrap tool. cmd/dist

# Building compilers and Go bootstrap tool for host, darwin/amd64. lib9 libbio liblink cmd/cc cmd/gc cmd/6l /Users/wilsonmar/.gvm/gos/go1.4/src/cmd/6l/../ld/dwarf.c:1472:15: error: implicit conversion from 'int' to 'char' changes value from 156 to -100 [-Werror,-Wconstant-conversion] /Users/wilsonmar/.gvm/gos/go1.4/src/cmd/6l/../ld/dwarf.c:1756:21: error: implicit conversion from 'int' to 'char' changes value from 144 to -112 [-Werror,-Wconstant-conversion] /Users/wilsonmar/.gvm/gos/go1.4/src/cmd/6l/../ld/lib.h:168:13: note: expanded from macro 'cput' go tool dist: FAILED: clang -I/usr/local/opt/readline/include -I/usr/local/opt/openssl/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -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 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -mmacosx-version-min=10.6 -c -m64 -I /Users/wilsonmar/.gvm/gos/go1.4/include -I /Users/wilsonmar/.gvm/gos/go1.4/src/cmd/6l -o /Users/wilsonmar/.gvm/gos/go1.4/pkg/obj/cmd/6l/dwarf.o /Users/wilsonmar/.gvm/gos/go1.4/src/cmd/6l/../ld/dwarf.c

chenrui333 commented 4 years ago

^ I have the same issue installing go1.4.2

haysclark commented 4 years ago

@wilsonmar @chenrui333 You two are having install issues very different than the Issue reporter. See if these steps https://github.com/moovweb/gvm/issues/307#issuecomment-432909339 fix your Issues for OSX.

BenKnigge commented 4 years ago

Have you tried using -B "gvm install go1.13 -B" If you do not have a previous version of go installed you will need to use the -B flag. I plan on making this the default in a future release.

georgettica commented 4 years ago

Also FYI you can do brew install go@1.13 bit am still puzzled on how to connect it to gvm

@BenKnigge can you lend a hand on that? The location it is installed in is: /use/vin/Cellar/go@1.13/$SOMEVERSION/

melsonic commented 10 months ago

Have you tried using -B "gvm install go1.13 -B" If you do not have a previous version of go installed you will need to use the -B flag. I plan on making this the default in a future release.

hey Ben, looks like this -B flag hasn't been added as default as I was still experiencing this issue today. But adding this flag solved my problem. Anyways thanks for your comment. :+1: