Nov 13 2009
∞
Go をインストール
CakePHP 関係ないけど Debian lenny にインストール。
$ sudo aptitude install bison gcc libc6-dev ed make mercurial
$ export GOROOT=$HOME/go
$ export GOARCH=386
$ export GOOS=linux
$ export GOBIN=$GOROOT/bin
$ mkdir $GOROOT/bin
$ hg clone -r release https://go.googlecode.com/hg/ $GOROOT
$ cd $GOROOT/src
$ ./all.bash
$ export PATH=$PATH:$GOROOT/bin
$ mkdir ../my && cd ../my
$ cat >hello.go <<EOF
package main
import "fmt"
func main() {
fmt.Printf("hello, world\n")
}
EOF
$ 8g hello.go
$ 8l hello.8
$ ./8.out