Build issues on Ubuntu 19.04
jolyonbrown opened this issue · 4 comments
Hi there - just following the instructions for the Ubuntu build and seem to have come across a problem. After installing the recommended packages the make command throws out
~/wallutils$ make
go build
xrandr.go:6:2: cannot find package "github.com/fatih/color" in any of:
/usr/lib/go-1.10/src/github.com/fatih/color (from $GOROOT)
/home/jolyon/go/src/github.com/fatih/color (from $GOPATH)
collections.go:4:2: cannot find package "github.com/stretchr/powerwalk" in any of:
/usr/lib/go-1.10/src/github.com/stretchr/powerwalk (from $GOROOT)
/home/jolyon/go/src/github.com/stretchr/powerwalk (from $GOPATH)
collections.go:5:2: cannot find package "github.com/xyproto/gnometimed" in any of:
/usr/lib/go-1.10/src/github.com/xyproto/gnometimed (from $GOROOT)
/home/jolyon/go/src/github.com/xyproto/gnometimed (from $GOPATH)
x11.go:11:2: cannot find package "github.com/xyproto/imagelib" in any of:
/usr/lib/go-1.10/src/github.com/xyproto/imagelib (from $GOROOT)
/home/jolyon/go/src/github.com/xyproto/imagelib (from $GOPATH)
collections.go:6:2: cannot find package "github.com/xyproto/simpletimed" in any of:
/usr/lib/go-1.10/src/github.com/xyproto/simpletimed (from $GOROOT)
/home/jolyon/go/src/github.com/xyproto/simpletimed (from $GOPATH)
x11.go:12:2: cannot find package "github.com/xyproto/xpm" in any of:
/usr/lib/go-1.10/src/github.com/xyproto/xpm (from $GOROOT)
/home/jolyon/go/src/github.com/xyproto/xpm (from $GOPATH)
make: *** [Makefile:7: all] Error 1
Just looking to help amend the install instructions for clueless folks like me - I'm assuming I'd need to install each one of those separately?
Thanks for reporting. I assume the version of Go on Ubuntu 19.04 is too old.
I will try to reproduce the issue.
My local go version - I'll see if bumping it up helps.
$ go version
go version go1.10.4 linux/amd64
OK, managed to get this to build. Ditched the Ubuntu go package, downloaded the tar file from golang direct, so now using:
$ go version
go version go1.12.7 linux/amd64
Also had to install libwayland-dev and libxpm-dev to get the build to complete. Now to actually try this out!
Thanks for testing! Please let me know if you encounter any issues, and I'll do my best to sort them out.
I'll add a note to the documentation that Go 1.12 or later is required.