Opened 14 years ago
Last modified 13 years ago
#24661 closed defect
go-devel: fatal error: can't find import: fmt on MacPorts — at Initial Version
Reported by: | tsumekiri@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.2 |
Keywords: | Cc: | ||
Port: | go-devel |
Description
Hi.
I installed Go on MacPorts. But helloworld program can not be comiled.
I installed and compiled as follows:
$ uname -a Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu- 1504.3.12~1/RELEASE_I386 i386
$ sudo port install go-devel
$ cat > hello.go
package main
import "fmt"
func main() {
fmt.Printf("Hello, 世界\n")
}
$ 6g hello.go hello.go:3: fatal error: can't find import: fmt
I tried to set GOROOT, didn't know where should I set. I'm sorry if I misunderstood something.
Thank you.
Note: See
TracTickets for help on using
tickets.