golang博客系统beego-blog编译及运行笔记

本文详细记录了使用Go语言编译及运行beego-blog系统的步骤,包括遇到的问题及解决方法,如依赖包安装、类型转换、源码修改等,最后成功运行并验证了系统。
摘要由CSDN通过智能技术生成

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<
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值