revel / cmd

Command line tools for Revel.
MIT License
62 stars 101 forks source link

command not found #202

Closed 12mohaned closed 2 years ago

12mohaned commented 3 years ago

After installing both packages.

go get github.com/revel/cmd/revel
go get github.com/revel/revel

When I type revel in terminal, it does output the following message. -bash: revel: command not found

This is my bash_profile.

export GOPATH=/Users/$USER/go export PATH="$PATH:$GOPATH/bin"

pookah-net commented 3 years ago

I'm a brand-new Revel user, and had the same problem. I solved it by hunting around, and finally finding the "revel" binary (U ran go build and go install, first)in a weird place due to a typo in my $GOPATH. I then moved the binary to the $GOPATH/bin directory, restarted my shell and it seemed to work!

Because it wasn't in any known path, which revel didn't find it, which is why I went hunting for it before realizing my $GOPATH was not pointing in the right direction. Hope this helps!

brendensoares commented 2 years ago

@12mohaned try cd $GOPATH to see if the env var resolves correctly.

servel333 commented 2 years ago

I had to run this to get it to work

go build github.com/revel/cmd/revel

And then the binaries appeared in the $GOBIN path.

You can check go env to see what your paths are.