cjdcmd icon indicating copy to clipboard operation
cjdcmd copied to clipboard

Command not found

Open shanestranahan opened this issue 13 years ago • 5 comments

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.

shanestranahan avatar Mar 27 '13 09:03 shanestranahan

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"

ryansb avatar Apr 18 '13 15:04 ryansb

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!

shanestranahan avatar Apr 18 '13 19:04 shanestranahan

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.

ryansb avatar Apr 18 '13 19:04 ryansb

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.

shanestranahan avatar Apr 18 '13 23:04 shanestranahan

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.

ryansb avatar Apr 26 '13 22:04 ryansb