VirtualBoxでUbuntu系OSを入れていた。
grumpyとはこれ。 GitHub - google/grumpy: Grumpy is a Python to Go source code transcompiler and runtime.
ssh vagrant
でsshで入ったあとに、
まず、以下のコマンドでgccgo-goを入れてみると
sudo apt-get install gccgo-go
さらにgrumpyをmakeしようと
make go tool: no such tool "compile"
↑とかのエラーがでた。
Go言語にはgccgoとgcがあるみたい。
さっき入れたgccgoを消す
sudo apt-get remove gccgo-go
$HOME/go1.4 をビルドしておく
git clone -b release-branch.go1.4 https://go.googlesource.com/go $HOME/go1.4 cd $HOME/go1.4/src ./make.bash
晴れて最新?のgoをインストール
git clone https://go.googlesource.com/go cd go/src ./all.bash
何故かへんてこなエラー。
bootstrap/cmd/link go tool dist: FAILED: /home/vagrant/go1.4/bin/go install -gcflags=-l -tags=math_big_pure_go -v bootstrap/cmd/...: exit status 1
https://github.com/moovweb/gvm/issues/155
を見て 1.4がないからとかいうのは関係ないけど似た現象の人がいたから。
sudo apt-get update sudo apt-get upgrad
をトライ。
その際
Use 'apt-get autoremove' to remove them.
とか言ってきたので
sudo apt-get autoremove'
を機械的に実行
しかし結局だめ。
hgがはいってないからかな?
sudo apt-get install mercurial
関係ない・・。