-
Notifications
You must be signed in to change notification settings - Fork 569
Closed
Description
First of all, this looks like a really cool project and it's great to see how far you got! I tried it just got the following problem.
$ cat play_js.go
package main
import "fmt"
func main() {
alert("Hello, JavaScript")
fmt.Println("Hello, playground")
}
func alert(msg string) {}
const js_alert = `window.alert(msg);`
$ gopherjs build play_js.go
/Users/Dmitri/Desktop/play_js.go:3:8: could not import fmt (/usr/local/go/src/pkg/fmt/print.go:10:2: could not import os (/usr/local/go/src/pkg/os/dir_unix.go:11:2: could not import syscall (/usr/local/go/src/pkg/syscall/exec_bsd.go:10:2: could not import runtime (open /usr/local/go/src/pkg/runtime/zgoarch_js.go: permission denied))))
$ ls -la /usr/local/go/src/pkg/fmt/print.go
-rw-r--r-- 1 root wheel 30639 28 Nov 13:42 /usr/local/go/src/pkg/fmt/print.go
Any idea why that'd be? The files in my GOROOT are readable by user, group, others.
Running go version go1.2 darwin/amd64
on OS X 10.9.
Metadata
Metadata
Assignees
Labels
No labels