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

Command not found #28

Open
shanestranahan opened this issue Mar 27, 2013 · 5 comments
Open

Command not found #28

shanestranahan opened this issue Mar 27, 2013 · 5 comments

Comments

@shanestranahan
Copy link

After successfully installing Go, I'm getting the error -
-bash: cjdcmd: command not found

I've installed and updated cjdcmd, didn't see any output from command.

I'm using the most recent version of OSX.

@ryansb
Copy link
Contributor

ryansb commented Apr 18, 2013

This sounds like a problem with your Go path. Check the contents of your $GOROOT environment variable.

You can do this by doing export PATH="$PATH:$GOROOT/bin"

@shanestranahan
Copy link
Author

I ran that and nothing was exported. When I run 'echo $GOPATH' it shows the install directory, though.

This is what happens when I run cjdcmd:

'Shanes-MacBook-Air:cjdns shanestranahan$ cjdcmd
-bash: cjdcmd: command not found'

Thanks for your help, Ryan!

@ryansb
Copy link
Contributor

ryansb commented Apr 18, 2013

Ok, so make sure you have "$GOPATH" set, and run go get github.com/inhies/cjdcmd

Check that $PATH contains your Go binaries directory ($GOPATH/bin) and then it should work.

@shanestranahan
Copy link
Author

I had both of these set in my bashrc -

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

...and I've added -

export PATH="$PATH:$GOROOT/bin"

...but it isn't working. Did I misunderstand you? Thanks again for taking the time.

@ryansb
Copy link
Contributor

ryansb commented Apr 26, 2013

Can you try going through http://golangtutorials.blogspot.com/2011/05/checking-we-have-go-setup-right.html ? It has more specific instructions that I gave.

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

2 participants