Vault: Gox Not Found

Created on 5 Apr 2016  路  3Comments  路  Source: hashicorp/vault

I'm trying to compile Vault on Debian Jessie using Go 1.6 by following the README.md file in the repo. I am attempt to resolve this bug, https://github.com/hashicorp/vault/issues/1279

I receive this error when trying to make the bin

###@###:~/go/src/github.com/hashicorp/vault$ make
go generate
VAULT_TOKEN= TF_ACC= go test $(go list ./... | grep -v /vendor/)  -timeout=120s -parallel=4
ok      github.com/hashicorp/vault  0.027s
ok      github.com/hashicorp/vault/api  0.033s
ok      github.com/hashicorp/vault/audit    0.011s
?       github.com/hashicorp/vault/builtin/audit/file   [no test files]
?       github.com/hashicorp/vault/builtin/audit/syslog [no test files]
ok      github.com/hashicorp/vault/builtin/credential/app-id    0.008s
ok      github.com/hashicorp/vault/builtin/credential/cert  0.107s
ok      github.com/hashicorp/vault/builtin/credential/github    0.007s
ok      github.com/hashicorp/vault/builtin/credential/ldap  0.016s
ok      github.com/hashicorp/vault/builtin/credential/userpass  0.015s
ok      github.com/hashicorp/vault/builtin/logical/aws  0.009s
ok      github.com/hashicorp/vault/builtin/logical/cassandra    0.011s
ok      github.com/hashicorp/vault/builtin/logical/consul   0.015s
ok      github.com/hashicorp/vault/builtin/logical/mssql    0.036s
ok      github.com/hashicorp/vault/builtin/logical/mysql    0.012s
ok      github.com/hashicorp/vault/builtin/logical/pki  0.011s
ok      github.com/hashicorp/vault/builtin/logical/postgresql   0.026s
ok      github.com/hashicorp/vault/builtin/logical/ssh  0.011s
ok      github.com/hashicorp/vault/builtin/logical/transit  0.020s
?       github.com/hashicorp/vault/cli  [no test files]
ok      github.com/hashicorp/vault/command  4.369s
ok      github.com/hashicorp/vault/command/server   0.044s
ok      github.com/hashicorp/vault/command/token    0.047s
ok      github.com/hashicorp/vault/helper/certutil  0.031s
ok      github.com/hashicorp/vault/helper/flag-kv   0.002s
ok      github.com/hashicorp/vault/helper/flag-slice    0.002s
ok      github.com/hashicorp/vault/helper/gated-writer  0.002s
ok      github.com/hashicorp/vault/helper/kdf   0.002s
ok      github.com/hashicorp/vault/helper/kv-builder    0.006s
ok      github.com/hashicorp/vault/helper/mfa   0.007s
ok      github.com/hashicorp/vault/helper/mfa/duo   0.004s
?       github.com/hashicorp/vault/helper/mlock [no test files]
?       github.com/hashicorp/vault/helper/password  [no test files]
ok      github.com/hashicorp/vault/helper/pgpkeys   0.666s
ok      github.com/hashicorp/vault/helper/policies  0.002s
ok      github.com/hashicorp/vault/helper/salt  0.013s
ok      github.com/hashicorp/vault/helper/xor   0.002s
ok      github.com/hashicorp/vault/http 1.236s
ok      github.com/hashicorp/vault/logical  0.007s
ok      github.com/hashicorp/vault/logical/framework    0.017s
ok      github.com/hashicorp/vault/logical/testing  0.036s
ok      github.com/hashicorp/vault/meta 0.011s
ok      github.com/hashicorp/vault/physical 0.069s
ok      github.com/hashicorp/vault/shamir   0.005s
ok      github.com/hashicorp/vault/vault    20.608s
?       github.com/hashicorp/vault/version  [no test files]
###@###:~/go/src/github.com/hashicorp/vault$ make bin
go generate
==> Removing old directory...
==> Building...
/home/###/go/src/github.com/hashicorp/vault/scripts/build.sh: line 44: gox: command not found
make: *** [bin] Error 127

go env returns,

###@###:~/go/src/github.com/hashicorp/vault$ go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/###/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GO15VENDOREXPERIMENT="1"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"

running "make bootstrap" appeared to work successfully, and it looks like gox is installed. Not sure why make isn't detecting it properly

###@###:~/go/src/github.com/mitchellh/gox$ ls
go.go       LICENSE  main_osarch.go    platform_flag_test.go  platform_test.go  toolchain.go
go_test.go  main.go  platform_flag.go  platform.go            README.md

Most helpful comment

For those coming here from google in the future, note that gox is a dependency that you need to install: go get github.com/mitchellh/gox

All 3 comments

Likely the location of gox is not in your PATH. It should be in $GOPATH/bin.

Bingo, thank you. Magic command is, export PATH=$PATH:$GOPATH/bin

For those coming here from google in the future, note that gox is a dependency that you need to install: go get github.com/mitchellh/gox

Was this page helpful?
0 / 5 - 0 ratings