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

having difficulty building... #15

Open
ScottChapman opened this issue Feb 7, 2019 · 4 comments
Open

having difficulty building... #15

ScottChapman opened this issue Feb 7, 2019 · 4 comments

Comments

@ScottChapman
Copy link

So I am trying to build this for the first time. I do have go 1.10 on my mac. I had to install dep using brew (not sure why the go get... command didn't appear to do anything.

Anyway, I am on the make deps step and I get an error:

SECMacbookPro:newrelic-cli scottchapman$ make deps
git config --global url."[email protected]:".insteadOf "https://github.com/"
dep ensure
/Users/scottchapman/Workspaces/newrelic-cli is not within a known GOPATH/src
make: *** [deps] Error 1

(sorry, not a seasoned Go developer...)

@mattlinebarger
Copy link

I had the same issue. Move "newrelic-cli" to the ~/go/src/ folder and try again.

@daniel-rocha-ciandt
Copy link

Make sure that your $GOPATH is corrected configured, you can checkout a command go env

Also add the GOPATH and you bash profile:
echo export GOPATH="$HOME/go" >> ~/.bash_profile
echo export PATH="$PATH:$GOPATH/bin" >> ~/.bash_profile

@NotThatRonnieColeman
Copy link

Not sure if you all have made progress, but this is what worked for me...

go get github.com/IBM/newrelic-cli
this installed the binary to run to $GOPATH/bin/newrelic-cli

then i just aliased that in my ~/.bash_profile
alias nr=newrelic-cli

Next new terminal session you start should be able to run nr. Alternatively run source ~/.bash_profile and your current session should also work.

@SantiEich
Copy link

Thanks! 👍

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

5 participants