Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tour: go tool: no such tool "tour" #293

Closed
twang2218 opened this issue Sep 5, 2017 · 4 comments
Closed

tour: go tool: no such tool "tour" #293

twang2218 opened this issue Sep 5, 2017 · 4 comments

Comments

@twang2218
Copy link
Contributor

Context: https://tour.golang.org/welcome/3

I tried to run the go tour on my local, however, the command in the tour is not working by default:

$ go tool tour
go tool: no such tool "tour"

There is no tour in the go tool

$ go tool
addr2line
api
asm
cgo
compile
cover
dist
doc
fix
link
nm
objdump
pack
pprof
trace
vet

After I manually go get the package:

go get golang.org/x/tour/gotour

Then, I still not be able run go tool tour, however, I can run gotour directly.

$ gotour
2017/09/05 13:17:40 Serving content from /Users/taowang/lab/go/src/golang.org/x/tour
2017/09/05 13:17:40 A browser window should open. If not, please visit http://127.0.0.1:3999
2017/09/05 13:17:41 accepting connection from: 127.0.0.1:64148

I installed go by brew install go.

Here is my go env:

ζ go env
GOARCH="amd64"
GOBIN="/Users/taowang/lab/go/bin"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/taowang/lab/go"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.9/libexec"
GOTOOLDIR="/usr/local/Cellar/go/1.9/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/wc/9tzsn1hd7c38tvc54kctn4100000gn/T/go-build771795075=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"

Is there any update should be made?

@twang2218
Copy link
Contributor Author

Just realize there are bunch of related issues have been reported:

I also tried it on my Ubuntu 16.04, and installed by recommended approach snap:

$ sudo snap install --classic go
go 1.9 from 'mwhudson' installed
$ go version
go version go1.9 linux/amd64
$ go tool tour
go tool: no such tool "tour"

It still not work by default.

@twang2218
Copy link
Contributor Author

Submitted a PR for adding instructions of manually install and run the gotour:
https://go-review.googlesource.com/c/tour/+/61510

@spf13
Copy link

spf13 commented Sep 11, 2017

Thanks @twang2218 for this contribution. It's going to help a lot of people!

@BonfaceKilz
Copy link

If you are running a linux distro(in my case archlinux), be sure to add the go bin i.e. ~/go/bin to your environment variables. In my case, I added it to the ~/.profile file.

gopherbot pushed a commit to golang/website that referenced this issue May 26, 2021
Fix: golang/tour#293
and many other related issues.

Change-Id: I6a8cd83e660c04a87256d94114f9f37a05c765f2
Reviewed-on: https://go-review.googlesource.com/61510
Reviewed-by: Steve Francia <spf@golang.org>
X-Tour-Commit: 6fbb01103dd85e9e73b6b585fcc453501c6f952a
passionSeven added a commit to passionSeven/website that referenced this issue Oct 18, 2022
Fix: golang/tour#293
and many other related issues.

Change-Id: I6a8cd83e660c04a87256d94114f9f37a05c765f2
Reviewed-on: https://go-review.googlesource.com/61510
Reviewed-by: Steve Francia <spf@golang.org>
X-Tour-Commit: 6fbb01103dd85e9e73b6b585fcc453501c6f952a
KimuraDanaka119 added a commit to KimuraDanaka119/go-tour-jp that referenced this issue Jun 4, 2023
Fix: golang/tour#293
and many other related issues.

Change-Id: I6a8cd83e660c04a87256d94114f9f37a05c765f2
Reviewed-on: https://go-review.googlesource.com/61510
Reviewed-by: Steve Francia <spf@golang.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants