Golang:安装了revel命令工具后,无法正常工作。

huangapple go评论80阅读模式
英文:

Golang : After installed revel command tool, not working properly

问题

以下是要翻译的内容:

Golang:安装了revel命令工具后,无法正常工作。

Golang:安装了revel命令工具后,无法正常工作。

我按照revel框架的文档进行了安装,安装成功。但是在Git Bash和命令提示符中尝试使用revel命令时,它不起作用。

请问有人能给出一些建议吗?

英文:

Golang:安装了revel命令工具后,无法正常工作。

Golang:安装了revel命令工具后,无法正常工作。

Here I followed revel FW document and installed successfully. But try to use revel command in both Git bash and cmd, it is not working

Please anyone give some suggestion for that...

答案1

得分: 1

  1. 运行:go get github.com/revel/revel
  2. 运行:go get github.com/revel/cmd/revel
  3. 现在应该可以从任何位置使用revel了。如果不能,请确保你设置了$GOPATH/bin。

附注:
如果在安装github.com/revel/cmd/revel时遇到问题,请尝试完全删除github.com/revel,并重新安装这两个包。

英文:
  1. Run: go get github.com/revel/revel
  2. Run: go get github.com/revel/cmd/revel
  3. Now revel should be available from any place. If not, make sure you have $GOPATH/bin set.

P.S.
If have problems installing github.com/revel/cmd/revel, try removing completely github.com/revel, and re-installing both packages.

huangapple
  • 本文由 发表于 2016年12月9日 10:56:03
  • 转载请务必保留本文链接:https://go.coder-hub.com/41052390.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定