golang - revel安裝手記

先bing了篇博文,參考着去下載安裝,結果第一步go get運行就出錯: html

go: missing Mercurial command。。 git

看錯誤信息是源代碼控制的工具沒有預先安裝,乾脆去官網查看 github

http://robfig.github.io/revel/tutorial/gettingstarted.html  centos

果真人家的安裝嚮導很詳細,一開始就說要安裝兩個源代碼控制工具: 工具

Install git and hg

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。

相關文章
相關標籤/搜索