Opened 14 years ago
Last modified 13 years ago
#24661 closed defect
go-devel: fatal error: can't find import: fmt on MacPorts — at Version 1
Reported by: | tsumekiri@… | Owned by: | singingwolfboy@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.2 |
Keywords: | Cc: | ||
Port: | go-devel |
Description (last modified by jmroot (Joshua Root))
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.
Change History (1)
comment:1 Changed 14 years ago by jmroot (Joshua Root)
Description: | modified (diff) |
---|---|
Keywords: | golang go removed |
Owner: | changed from macports-tickets@… to singingwolfboy@… |
Port: | lang removed |
Note: See
TracTickets for help on using
tickets.
Please remember to preview and use WikiFormatting, and cc the maintainer.