Ubuntu Go言語のインストール記録
もっと読む
参照先:http://golang.org/doc/install.html
いくつかの違い:
設置に必要な依存性:
$sudo ap-get install bison gawk gcc libc 6-dev make
python-setuptools python-dev build-esential
設置Hg:
$sudo easy_install mecurial
goソースを取得:
$hg clone-u releasehttps://go.googlecode.com/hg/ go
インストール:
$cd go/src
ドル./all.bash
下記の情報を見るとインストール成功です。
---cd../test
0 known bugs;0 unexpected bugs
ALL TESTS PASSED
を選択します
Installed Go for linux/amd 64 in/home/zc/opt/go.
Installed command in/home/zc/opt/go/bin.
The compler is 6 g.
認証:
$cat>hello.goimport「fmt」
func main(){
fmt.Printf(「ハロー、world」)
)
EOF
$6 gハロー.go
$6 l hello 6
US./6.out
ハロー、ワールド
$
go lang更新:
$cd go/src
$hg pull
$hg udate release
ドル./all.bash
参照先:http://golang.org/doc/install.html
いくつかの違い:
amd64
(a.k.a.x86-64
)6g,6l,6c,6a
The most mature implemention.The compler has an effective optimizer(register izer)and generantes good code(although)gccgo
can do noticeably better sometimes)386
(a.k.a.x86
orx86-32
)8g,8l,8c,8a
Comprable to theamd64
ポ-トarm
(a.k.a.ARM
)5g,5l,5c,5a
Incomplettee.It only supports Linux binaries,the optimizer is incomplettee,and float point uses the VFP unit.However,all tests pass.Work on the optimizer is contioning.Tested against a NexOne.設置に必要な依存性:
$sudo ap-get install bison gawk gcc libc 6-dev make
python-setuptools python-dev build-esential
設置Hg:
$sudo easy_install mecurial
goソースを取得:
$hg clone-u releasehttps://go.googlecode.com/hg/ go
インストール:
$cd go/src
ドル./all.bash
下記の情報を見るとインストール成功です。
---cd../test
0 known bugs;0 unexpected bugs
ALL TESTS PASSED
を選択します
Installed Go for linux/amd 64 in/home/zc/opt/go.
Installed command in/home/zc/opt/go/bin.
The compler is 6 g.
認証:
$cat>hello.go
func main(){
fmt.Printf(「ハロー、world」)
)
EOF
$6 gハロー.go
$6 l hello 6
US./6.out
ハロー、ワールド
$
go lang更新:
$cd go/src
$hg pull
$hg udate release
ドル./all.bash