-
Notifications
You must be signed in to change notification settings - Fork 4
Building on Ubuntu Linux
Matt Bruzek edited this page May 18, 2017
·
10 revisions
I know all the cool kids are using macs but I still use linux and wanted to build cmd. The build process did not work on my Ubuntu system, but I get it there are extra things I need to install. There are dependencies that are required to run some of the make targets. I went through a discovery for these and want to help the next person.
Things I had to add to my linux system:
- Go (Duh right? But specifically what version is minimum? Is it possible to have make install for both mac and linux?)
- Because I did not have glide installed
make build
command failed complaining about go packages not existing. I manually rango get
for each dependency by hand to resolve. I have created a PR for the Makefile to install glide before running the dependency check.
- Because I did not have glide installed
-
hugo the webserver written in go (could not make the www-dev target without
apt-get install hugo
). -
docker is required.
I got a docker error but it turns out the cmd package was in the wrong directory:../github.com/gliderlabs/cmd/lib/docker/docker.go:19: undefined: client.DefaultVersion
-
docker-compose (I was not able to
make test-env
without docker-compose and there is no package for it.) -
glide a package manager for go (according to apt-cache the debian package is "golang-glide" which gives you v0.12.3). Unfortunately
make setup
still exited in error:[ERROR] Export failed for github.com/getsentry/raven-go: Error while exporting submodule sources
. Getting the dev version of glidego get github.com/Masterminds/glide
andgo install github.com/Masterminds/glide
gave me v0.13.0-dev which got past this error.
Hope this helps the next person trying to develop/build on linux. Please add to the page if I forgot something.