Skip to content

Instantly share code, notes, and snippets.

@paulohrpinheiro
Created September 3, 2020 00:13
Show Gist options
  • Save paulohrpinheiro/6900b845cb2b85d0a6f52b552fb17431 to your computer and use it in GitHub Desktop.
Save paulohrpinheiro/6900b845cb2b85d0a6f52b552fb17431 to your computer and use it in GitHub Desktop.
Colinha pra instalar o compilador com suporte a generics
Seguindo a receita em https://golang.org/doc/install/source
Tendo o go instalado, em meu fedora tive que instalar o pacote gccgo,:
gcc-go-10.1.1-1.fc32.x86_64 Go support
libgo-10.1.1-1.fc32.x86_64 Go runtime
libgo-devel-10.1.1-1.fc32.x86_64 Go development libraries
Voltando às instruções:
git clone https://go.googlesource.com/go goroot
cd goroot
git checkout dev.go2go
cd src
./all.bash # all.bat for windows
Compilou!
ALL TESTS PASSED
---
Installed Go for linux/amd64 in /home/paulohrpinheiro/repo/goroot
Installed commands in /home/paulohrpinheiro/repo/goroot/bin
*** You need to add /home/paulohrpinheiro/repo/goroot/bin to your PATH.
Pra ajudar:
✔≻ alias go2=/home/paulohrpinheiro/repo/goroot/bin/go
✔≻ go2 version
go version devel +10ea225e28 Fri Jun 26 22:32:53 2020 +0000 linux/amd64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment