From 3aac3bda44d1f98a95edfcaa8d753251f9d3ebcc Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Fri, 29 May 2015 15:25:52 -0500 Subject: [PATCH] Update README.md install section. This commit adds an additional step to the README.md install section to run the go version command and check the version so people that are installing it for the first time and ensure they are running a high enough version and have GOROOT and GOPATH set correctly. --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3c5b7d4b64..41d3248717 100644 --- a/README.md +++ b/README.md @@ -48,10 +48,21 @@ https://github.com/btcsuite/btcd/releases - Install Go according to the installation instructions here: http://golang.org/doc/install +- Ensure Go was installed properly and is a supported version: + +```bash +$ go version +$ go env GOROOT GOPATH +``` + +NOTE: The `GOROOT` and `GOPATH` above must not be the same path. It is +recommended that `GOPATH` is set to a directory in your home directory such as +`~/goprojects` to avoid write permission issues. + - Run the following command to obtain btcd, all dependencies, and install it: ```bash -$ go get github.com/btcsuite/btcd/... +$ go get -u github.com/btcsuite/btcd/... ``` - btcd (and utilities) will now be installed in either ```$GOROOT/bin``` or