go 安裝revel記錄

來源:互聯網
上載者:User
這是一個建立於 的文章,其中的資訊可能已經有所發展或是發生改變。

1、安裝 Revel 架構

$ go get github.com/revel/revel

2、安裝 Revel 命令列工具

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

3、建立 Revel 應用

$ revel new myapp$ revel run myapp
註:因為google被牆,所以需要在安裝revel之前自行下載go的websocket,放入你設定好的gopath/src目錄下(我在這裡下載的go websocket :http://golang.so/thread-143-1-1.html)要使用revel命令執行:go build -o bin/revel.exe github.com/revel/revelgo build -o bin/revel.exe github.com/revel/cmd/revel試了上面兩個方法產生revel.exe,感覺好像都一樣,隨便用一個就好產生好的revel.exe就存放在gopath/bin下 使用過程中,用到sqlite3(go get github.com/mattn/go-sqlite3),結果報錯cc1.exe: sorry, unimplemented: 64-bit mode not compiled in需要使用gcc,本來的系統中有msys而且配置了環境變數了,可惜不是64位的不行然後找方法:方法1.下載64位MinGW,把bin加到環境變數,下載地址為http://sourceforge.net/projects/mingw-w64/files/Toolchains targetting Win64/Personal Builds/mingw-builds/4.8.2/threads-posix/seh/方法2.下載TDM-GCC-64,安裝時選擇加入到環境變數就好,下載地址http://tdm-gcc.tdragon.net/download 重啟cmd視窗,ok!

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.