deepin安装bee错误,go1.14.6
本人新手小白
go get github.com/beego/bee
安装bee时出现一下提示:
github.com/gadelkareem/delve/service/rpccommon
go/src/github.com/gadelkareem/delve/service/rpccommon/server.go:83:3: cannot use logger (type *“github.com/go-delve/delve/vendor/github.com/sirupsen/logrus”.Entry) as type *“github.com/gadelkareem/delve/vendor/github.com/sirupsen/logrus”.Entry in field value
对于新手的我来说是一脸懵逼,经过自己的不管搜索整理,找到了如下解决方法:
添加环境变量:
$ export GO111MODULE=on
$ export GOPROXY=https://goproxy.io
参考https://blog.youkuaiyun.com/qq_41119959/article/details/107084192
终端下命令:
vim ~/.bashrc
或者:
vim ~/profile
注:bashrc对系统所有用户有效,profile对当前用户有效。
添加环境变量:
export GO111MODULE=on
export GOPROXY=https://goproxy.io
添加完成之后保存,保存完成后,还有一步操作,就是让更改的环境变量进行生效,在终端中输入以下命令:
source ~/.bashrc
或者:
source ~/profile
在执行安装语句go get github.com/beego/bee
等待安装完成,输入bee version
大功告成!