先bing了篇博文,参考着去下载安装,结果第一步go get运行就出错: html
go: missing Mercurial command。。 git
看错误信息是源代码控制的工具没有预先安装,干脆去官网查看 github
http://robfig.github.io/revel/tutorial/gettingstarted.html , centos
果真人家的安装向导很详细,一开始就说要安装两个源代码控制工具: 工具
Both Git and Mercurial are required to allow go get to clone various dependencies. ui
git以前已经安装过,只须要装mercurial便可,按连接进入http://mercurial.selenic.com/wiki/Download#Windows spa
选择适合我本机配置的Mercurial-2.6.2 (64-bit msi)下载,结果连接无效,估计八成又是天朝的长城给拦住了,只能直接搜索安装程序的名字,索性有国内提供了下载地址http://www.onlinedown.net/soft/111939.htm .net
下载并安装,命令行下执行 命令行
go get github.com/robfig/revel orm
顺利下载.个人centos中,使用yum install "*mercurial*"安装
进入revel/revel目录,执行go build命令,生成revel.exe文件,经过此文件能够像scale的play framework同样,新建新的revel骨架工程,运行revel应用程序,build一个revel工程,或者执行test。