Cannot install on Ubuntu 17.10
felipemoran opened this issue · 5 comments
Hi! I've been trying to install Thyme on Ubuntu 17.10 but the command go get -u github.com/sourcegraph/thyme/cmd/thyme
doesn't seem to work, it doesn't output anything.
I installed Go version 1.8.3 via sudo apt-get install golang-go golang-go.tools
and go env
output is:
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/felipe/go"
GORACE=""
GOROOT="/usr/lib/go-1.8"
GOTOOLDIR="/usr/lib/go-1.8/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build942305158=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
Any ideas on what might be wrong and how to fix it? Many thanks!
Also, typing thyme dep
just after doesn't work, throwing No command 'thyme' found
same here!
Check your ~/go/bin. That's where go get installs the binary.
I got it working with the binary, just download it and ./thyme-linux-386
I created that two alias:
alias thymetrack='while true; do /usr/local/bin/thyme-linux-386 track -o /home/enric/Documents/myApps/Thyme/thyme.json; sleep 30s; done &'
alias thymeshow='/usr/local/bin/thyme-linux-386 show -i /home/enric/Documents/myApps/Thyme/thyme.json -w stats > /home/enric/Documents/myApps/Thyme/thyme.html && firefox /home/enric/Documents/myApps/Thyme/thyme.html'
Ty!
I was able to fix it by adding GOPATH/bin to PATH (in Debian sid). See: https://stackoverflow.com/questions/36083542/error-command-not-found-with-golang .