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.csdn.net/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 versiondeepin安装bee错误,go1.14.6

大功告成!

相关文章:

  • 2021-12-04
  • 2021-04-25
  • 2021-04-27
  • 2021-10-14
  • 2021-04-13
  • 2021-09-22
  • 2021-12-22
  • 2021-04-21
猜你喜欢
  • 2022-12-23
  • 2021-08-31
  • 2021-08-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
相关资源
相似解决方案