Created
December 27, 2011 19:34
-
-
Save shamun/1524890 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--------------------------- now | |
[sun@example gocode]$ gb | |
(in .) building cmd "gocode" | |
Built 1 target | |
--------------- | |
$ export GOROOT=/var/tmp/go; goinstall -clean github.com/skelterjohn/go-gb/gb | |
---------- | |
install websocket | |
install ../cmd/godoc | |
install ../cmd/goinstall | |
install http/fcgi | |
install rpc/jsonrpc | |
make: Leaving directory `/var/tmp/go/src/pkg' | |
--- | |
Installed Go for linux/386 in /var/tmp/go. | |
Installed commands in /var/tmp/go/bin. | |
The compiler is 8g. | |
[sun@example gb]$ export GOROOT=/var/tmp/go; goinstall -clean github.com/skelterjohn/go-gb/gb | |
/bin/bash: === cd /var/tmp/go/src/pkg/github.com/skelterjohn/go-gb/gb; bash gomake -f- clean install | |
rm -rf *.o *.a *.[568vq] [568vq].out gb _test _testmain.go test.out build.out | |
8g -I "/var/tmp/go/pkg/linux_386" -o _go_.8 gb.go cgo.go genmake.go protobuf.go files.go errors.go pkg.go usage.go runext.go query.go make.go goinstall.go gofix.go gofmt.go util.go config.go build.go deps.go gentest.go | |
gb.go:22: can't find import: fmt | |
make: *** [_go_.8] Error 1 | |
--- exit status 2 | |
goinstall: github.com/skelterjohn/go-gb/gb: install: running bash: exit status 2 ($GOPATH not set) | |
---------------------------- before | |
[sun@example gocode]$ echo $GOROOT | |
/var/tmp/go | |
[sun@example gocode]$ gb -b | |
(in .) building cmd "gocode" | |
main.go:3: can't find import: fmt | |
1 broken target | |
(in .) could not build "gocode" | |
[sun@example gocode]$ gb -i | |
(in .) building cmd "gocode" | |
main.go:3: can't find import: fmt | |
1 broken target | |
(in .) could not build "gocode" | |
[sun@example gocode]$ | |
----------------------------- before | |
[sun@example gocode]$ pwd | |
/var/tmp/gocode | |
[sun@example gocode]$ cat main.go | |
package main | |
import fmt "fmt" | |
func main() { | |
fmt.Println("Hello, 世界") | |
} | |
[sun@example gocode]$ gb -i | |
(in .) building cmd "gocode" | |
main.go:3: can't find import: fmt | |
1 broken target | |
(in .) could not build "gocode" | |
[sun@example gocode]$ gb -b | |
(in .) building cmd "gocode" | |
main.go:3: can't find import: fmt | |
1 broken target | |
(in .) could not build "gocode" | |
[sun@example gocode]$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment