#24661: go-devel: fatal error: can't find import: fmt on MacPorts ---------------------------------+------------------------------------------ Reporter: tsumekiri@… | Owner: singingwolfboy@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: go-devel ---------------------------------+------------------------------------------ Changes (by jmr@…): * keywords: golang go => * owner: macports-tickets@… => singingwolfboy@… * port: lang go-devel => go-devel Old 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.
New 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. -- Comment: Please remember to preview and use WikiFormatting, and cc the maintainer. -- Ticket URL: <http://trac.macports.org/ticket/24661#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS