banthar / Go-SDL

Go bindings for SDL
218 stars 68 forks source link

Issue with Goinstall #50

Closed andrew-david-smith closed 12 years ago

andrew-david-smith commented 12 years ago

Hi sorry if this is my fault, but I guess it might help someone else looking here.

I followed the new readme (and the old one) and I have had quite a few issues. I now have it down to one.

My go version is compatible with weekly.2011-12-14 (i know because I installed this version)

I have all the SDL parts and they all work with other languages GOPATH=/home/me/gocode GOROOT=/home/me/go PATH=$PATH:/home/me/go/bin

When I run goinstall github.com/banthar/Go-SDL/sdl I get some permission denied error (not too sure why meh)

so I run sudo -E goinstall github.com/banthar/Go-SDL/sdl and get /bin/bash: === cd /home/me/gocode/src/github.com/banthar/Go-SDL/sdl; bash gomake -f- install 8g -I "/home/me/go/pkg/linux_386" -I "/home/me/gocode/pkg/linux_386" -p github.com/banthar/Go-SDL/sdl -o go.8 constants.go structs_386.go _obj/sdl.cgo1.go _obj/_cgo_gotypes.go _obj/_cgo_gotypes.go:13: undefined: os.Error _obj/_cgo_gotypes.go:13: undefined: os.Errno make: *\ [go.8] Error 1 --- exit status 2 goinstall: github.com/banthar/Go-SDL/sdl: install: running bash: exit status 2

Just not too sure what this error means

Thanks

Thranriel

andrew-david-smith commented 12 years ago

Hmm.. managed to sort it out after a think.

I used this before hg pull -u hg update weekly.2011-12-14 sudo ./all.bash

for some reason deleting all the Go files on my PC and then reinstalling by using hg clone -u weekly.2011-12-14 https://go.googlecode.com/hg/ go sudo ./all.bash

Now it works. Not sure but hey it works so why complain haha!