阅读更多
1.安装google go
下载地址
http://lx.cdn.baidupcs.com/file/54b71637b3decb6a1fae61e4765c8c08?bkt=p2-qd-111&xcode=9523d8abbddbeab9f0e4620b39c68a4f754a97e088f0a023f77424e07ee197d9&fid=4211908481-250528-335121714365314&time=1447380215&sign=FDTAXGERLBH-DCb740ccc5511e5e8fedcff06b081203-jGDqOf26FePy6gP0QYhjhWS36DQ%3D&to=cb&fm=Nan,B,G,ny&sta_dx=64&sta_cs=13&sta_ft=msi&sta_ct=5&fm2=Nanjing02,B,G,ny&newver=1&newfm=1&secfm=1&flow_ver=3&pkey=000058e0adc71e1b6e420eb0ca2ea23aa4bd&sl=81330252&expires=8h&rt=sh&r=702319963&mlogid=7338653820775511073&vuk=838901005&vbdid=3533715084&fin=go1.5rc1.windows-amd64.msi&fn=go1.5rc1.windows-amd64.msi&slt=pm&uta=0&rtype=1&iv=0&isw=0&dp-logid=7338653820775511073&dp-callid=0.1.1
安装git
2.安装Mingw
https://www.baidu.com/link?url=XzKHTg8VhpuYfvoilPkdl_wGR73b92cs41EJqegGOyu&wd=&eqid=d94f2c7e0003415500000002564bde10
3.把go的bin目录添加到PATH环境变量,可以直接在CMD中执行
SET PATH=%PATH%;C:\go\bin
5.把mingw的bin目录添加到PATH路径
SET PATH=%PATH%;C:\go\bin
6.下载ngrok源码,下载地址
https://codeload.github.com/inconshreveable/ngrok/zip/master
7.将下载的zip解压出来,修改Makefile
将
export GOPATH:=$(shell pwd)
改为
export GOPATH:=C:\Users\Administrator\Desktop\ngork\ngrok-src
将
bin/go-bindata:
GOOS="" GOARCH="" go get github.com/jteeuwen/go-bindata/go-bindata
这段改为
bin/go-bindata:
GOOS=windows GOARCH=amd64 go get github.com/jteeuwen/go-bindata/go-bindata
8.修改log4go的路径
修改src\ngrok\log\logger.go中log4o那段代码为
log "github.com/keepeye/log4go"
9.cmd执行
make release-all