inhies / cjdcmd

cjdcmd is a command line tool for cjdns

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Command not found

shanestranahan opened this issue · 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.

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"

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!

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.

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.

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.