Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Did my setup fail or are instructions incomplete? #590

Closed
HintikkaKimmo opened this issue Aug 17, 2017 · 4 comments
Closed

Did my setup fail or are instructions incomplete? #590

HintikkaKimmo opened this issue Aug 17, 2017 · 4 comments

Comments

@HintikkaKimmo
Copy link

HintikkaKimmo commented Aug 17, 2017

Just installed Buffalo with go get -u github.com/gobuffalo/buffalo/buffalo result I can find Buffalo from my go/bin dir(binary) and from my go/src/github.com dir (source), but go command line tool does not work from command line even after restarting the terminal(iTerm with zsh).

If I cd to go/bin dir I can successfully run ./buffalo to open the command line tools. Am I expected to add it as an alias to my .zshrc profile of did the installation fail somehow?

Below my Go info

~/go/bin » go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/kimmo/go"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.8.3/libexec"
GOTOOLDIR="/usr/local/Cellar/go/1.8.3/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/qp/dbgjrlns73x5p2w0lkhwclmr0000gn/T/go-build036828905=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
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"

@HintikkaKimmo
Copy link
Author

HintikkaKimmo commented Aug 17, 2017

Adding alias buffalo="./go/bin/buffalo" to my .zshrc file sorta fixed it but now I can only use buffalo at root level

@paganotoni
Copy link
Member

@HintikkaKimmo probably GOPATH/bin is not added to your PATH env variable, could you confirm this ?

@HintikkaKimmo
Copy link
Author

HintikkaKimmo commented Aug 18, 2017

@apaganobeleno you are correct. I am working with a new Mac and I was tricked by the announcement that Go path is now set by default. Change below fixed my issues(not caused by Buffalo). I close the issue.

PATH configuration created when running brew install go
export PATH=$PATH:/usr/local/opt/go/libexec/bin

Here what I changed my PATH to get everything working

export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$PATH

@rawberg
Copy link

rawberg commented Feb 1, 2018

I had a similar issue on macOS Sierra 10.12.6. The buffalo command wasn't making into my $GOPATH/bin directory. Tried using Go 1.9.1 and 1.9.3 (both installed via Brew). Resolved it by upgrading to the very latest version of Xcode and then re-installing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants