gvm icon indicating copy to clipboard operation
gvm copied to clipboard

mac install go 1.13 is failed

Open lbtsm opened this issue 5 years ago • 8 comments

gvm install go1.13
Downloading Go source...
ERROR: Couldn't download Go source. Check the logs /Users/mcj/.gvm/logs/go-download.log
  • 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

lbtsm avatar Sep 29 '19 07:09 lbtsm

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

Sounds like GFW issue. My installation works just fine.

chenrui333 avatar Oct 05 '19 04:10 chenrui333

I am experiencing the same problem

BainDragneel avatar Oct 17 '19 06:10 BainDragneel

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

wilsonmar avatar Nov 08 '19 14:11 wilsonmar

^ I have the same issue installing go1.4.2

chenrui333 avatar Dec 08 '19 22:12 chenrui333

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

haysclark avatar Jan 28 '20 05:01 haysclark

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.

BenKnigge avatar Feb 03 '20 17:02 BenKnigge

Also FYI you can do brew install [email protected] 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/[email protected]/$SOMEVERSION/

georgettica avatar Oct 14 '20 15:10 georgettica

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:

melsonic avatar Jan 13 '24 15:01 melsonic