I installed gvm with go1.3, what next? I'm trying to build Revel, but I have the error:
can't load package: package github.com/robfig/revel/cmd: cannot find package "github.com/robfig/revel/cmd" in any of:
/home/cnaize/.gvm/gos/go1.3/src/pkg/github.com/robfig/revel/cmd (from $GOROOT)
($GOPATH not set)
How to fix this?
You have to set your
GOPATHenvironment variable by running a command like thisthen get the package, by using the command
Note if you set your
GOPATHin.bashrc, you have tosource ~/.bashrcto make it effective the first time (or re-open your terminal).I suggest you also read some documentation or tutorial about go instead of just creating a new question each time you do something. A list of resources is available on the go tag description.