Closed terriblefire closed 7 years ago
What go version
does it install from the repos? Also, I mentioned this in #3 but it is worth noting that my build instructions are definitely wrong, and you should be able to install with go get -u github.com/ChrisRx/dungeonfs...
, but there may be other issues like I have only tried this on go1.8/Ubuntu 16.04, for instance.
Sorry i should have included this..
go version go version go1.3.3 linux/amd64
I'll try what you stuggest.
i managed to do what you stuggest but the dungeonfs file just exited without printing anything.
The go version might be a little too old. I will try and figure out what minimum version is necessary and/or try to figure out what I need to do to make it work with older versions of go. On ubuntu I end up installing the newest version instead of using the repos because of how old they end up being. Thankfully it is pretty easy to install, you basically just download it, extract the go folder to a place like /usr/local/go
(and maybe do some symlinks or something if you like).
In the command did you include the trailing ...
in the go get
command? That tells it download all the packages under that root, which fixes the messed up main package I have in the root that I need to remove (that main.go
is blank so go get
will try and install that only without the ...
)
No` must have missed it ...
stephen@developer:~/gocode/bin$
go get -u github.com/ChrisRx/dungeonfs...
#
github.com/ChrisRx/dungeonfs/pkg/eval
../src/github.com/ChrisRx/dungeonfs/pkg/eval/binop.go:24: undefined: strings.Compare
# golang.org/x/sys/unix
../src/golang.org/x/sys/unix/asm_linux_amd64.s:8 6a: No such file or directory: textflag.h
# github.com/ChrisRx/dungeonfs/pkg/game/fs/core
`../src/github.com/ChrisRx/dungeonfs/pkg/game/fs/core/fs.go:59: undefined: signal.Ignore
It looks like the version of Go is too old since the errors you are receiving are related to one of the more fundamental golang.org/x/sys/unix
packages not being able to install correctly. Looking around I saw https://github.com/adnanh/webhook/issues/96 which seems to indicate that 1.3.x isn't supported anymore for that package. With that said this doesn't appear to be an issue with this project, rather with your Go version, so I would recommend installing the latest Go package and trying again (I will add that 1.3 is not supported in the README). I'm closing the issue but if you still experience the same problem with a new version I will be happy to reopen and further troubleshoot. Thanks for your interest and time!
stephen@developer:~/gitwork/dungeonfs$ make deps
golang.org/x/sys/unix
../../gocode/src/golang.org/x/sys/unix/asm_linux_amd64.s:8 6a: No such file or directory: textflag.h Makefile:10: recipe for target 'deps' failed make: *** [deps] Error 2
stephen@developer:~/gitwork/dungeonfs$ apt-file search textflag.h golang-src: /usr/share/go/src/cmd/ld/textflag.h
stephen@developer:~/gitwork/dungeonfs$ sudo apt-get install golang-src Reading package lists... Done Building dependency tree
Reading state information... Done golang-src is already the newest version. golang-src set to manually installed. The following packages were automatically installed and are no longer required: gdbserver libasn1-8-heimdal libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal libhx509-5-heimdal libkrb5-26-heimdal libroken18-heimdal libwind0-heimdal Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 265 not upgraded.
stephen@developer:~/gitwork/dungeonfs$ make deps
golang.org/x/sys/unix
../../gocode/src/golang.org/x/sys/unix/asm_linux_amd64.s:8 6a: No such file or directory: textflag.h Makefile:10: recipe for target 'deps' failed make: *** [deps] Error 2
This is on debian 8 jessie amd64