[MacPorts] #24661: go-devel: fatal error: can't find import: fmt on MacPorts
MacPorts
noreply at macports.org
Mon Apr 26 05:35:18 PDT 2010
#24661: go-devel: fatal error: can't find import: fmt on MacPorts
---------------------------------+------------------------------------------
Reporter: tsumekiri@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.8.2
Keywords: golang go | Port: lang go-devel
---------------------------------+------------------------------------------
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.
--
Ticket URL: <http://trac.macports.org/ticket/24661>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list