Not able to compile gommap in Ubuntu 11.10
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gommap |
Fix Released
|
Undecided
|
Gustavo Niemeyer |
Bug Description
I'm using Ubuntu 11.10 64 bits. I'm doing some experimentations with Go and it's important to me to have mmap. So I'm trying Gommap. But I'm not able to compile it. Here output:
$ sudo goinstall launchpad.
/bin/bash: === cd /usr/lib/
6g -I "/usr/lib/
6c -FVw -o "consts.6" consts.c
consts.c:2 6c: No such file or directory: sys/mman.h
make: ** [consts.6] Erro 1
--- exit status 2
goinstall: launchpad.
I tried to install libc6-dev because of the of sys/mman.h, but nothing to compile. I have to set something?
Thanks!
I've just tried to compile in MacOSX 10.7. But it was not possible too. Here the output error:
$ goinstall launchpad. net/gommap Cellar/ go/r60. 3/src/pkg/ launchpad. net/gommap; bash gomake -f- install Cellar/ go/r60. 3/pkg/darwin_ amd64" -o _go_.6 consts.go gommap.go net/gommap: install: running bash: exit status 2 ($GOPATH not set)
/bin/bash: === cd /usr/local/
6g -I "/usr/local/
gommap.go:59: undefined: mmap_syscall
make: *** [_go_.6] Error 1
--- exit status 2
goinstall: launchpad.