golang博客系统beego-blog编译及运行笔记
beego-blog是go代码大师UlricQin基于beego创建的博客系统,今天拿过来编译运行,当成go入门的练习课程了。
代码来自[github.com/UlricQin/beego-blog] 。
其中安装方法写的太简单,本文实践之后做了一些补充。
贴一下作者的安装说明:
install
mkdir -p $GOPATH/src/github.com/ulricqin
cd $GOPATH/src/github.com/ulricqin
git clone https://github.com/UlricQin/beego-blog.git
go get github.com/ulricqin/beego-blog/...
cd beego-blog && modify conf/app.conf
bee run
按照作者的方法,就差一步go build了:
cd beego-blog
$ go build main.go
g\g.go:8:2: cannot find package "github.com/go-sql-driver/mysql" in any of:
E:\run\go1.7beta1\src\github.com\go-sql-driver\mysql (from $GOROOT)
E:\run\gopath\src\github.com\go-sql-driver\mysql (from $GOPATH)
g\cfg.go:4:2: cannot find package "github.com/qiniu/api.v6/conf" in any of:
E:\run\go1.7beta1\src\github.com\qiniu\api.v6\conf (from $GOROOT)
E:\run\gopath\src\github.com\qiniu\api.v6\conf (from $GOPATH)
g\qiniu.go:4:2: cannot find package "github.com/qiniu/api.v6/io" in any of:
E:\run\go1.7beta1\src\github.com\qiniu\api.v6\io (from $GOROOT)
E:\run\gopath\src\github.com\qiniu\api.v6\io (from $GOPATH)
g\qiniu.go:5:2: cannot find package "github.com/qiniu/api.v6/rs" in any of:
E:\run\go1.7beta1\src\github.com\qiniu\api.v6\rs (from $GOROOT)
E:\run\gopath\src\github.com\qiniu\api.v6\rs (from $GOPATH)
g\markdown.go:4:2: cannot find package "github.com/slene/blackfriday" in any of:
E:\run\go1.7beta1\src\github.com\slene\blackfriday (from $GOROOT)
E:\run\gopath\src\github.com\slene\blackfriday (from $GOPATH)
controllers\api_controller.go:7:2: cannot find package "github.com/ulricqin/goutils/filetool" in any of:
E:\run\go1.7beta1\src\github.com\ulricqin\goutils\filetool (from $GOROOT)
E:\run\gopath\src<