需要有关设置 Beego 和 Bee 开发工具的帮助

发布于 2025-01-14 08:23:37 字数 689 浏览 4 评论 0原文

Go 已经安装在我的系统中。 路径变量位于 .bashrc 文件中。

# Golang
export PATH=$PATH:/usr/local/go/bin

$ go version

go version go1.16.14 linux/amd64

现在,我愿意使用Beego和bee开发工具。为此,我使用这些命令安装了 Beego 和 Bee。

$ go get -u github.com/beego/beego/v2

$ go get -u github.com/beego/bee/v2

均已成功安装。但是当我使用命令 bee version 时,它会在终端中产生此结果。

Command 'bee' not found, did you mean:

  command 'tee' from deb coreutils (8.30-3ubuntu2)
  command 'see' from deb mime-support (3.64ubuntu1)

Try: sudo apt install <deb name>

我是编程世界的初学者。我不确定如何解决它。有人可以帮我解决这个问题吗?

Go is already installed in my system.
and path variable is in .bashrc file.

# Golang
export PATH=$PATH:/usr/local/go/bin

$ go version

go version go1.16.14 linux/amd64

Now, I am willing to work with Beego and bee dev tools. For that, I installed Beego and Bee by using these commands.

$ go get -u github.com/beego/beego/v2

$ go get -u github.com/beego/bee/v2

both got successfully installed. but when I am using the command bee version it is resulting this in the Terminal.

Command 'bee' not found, did you mean:

  command 'tee' from deb coreutils (8.30-3ubuntu2)
  command 'see' from deb mime-support (3.64ubuntu1)

Try: sudo apt install <deb name>

I am a beginner in the programming world. I am not sure How to resolve it. Can Someone help me with this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

南风起 2025-01-21 08:23:37

我有同样的问题。使用命令 bee 时安装在 home/go/bin 中。我所做的就是从那里复制 bee 文件并将其粘贴到 usr/local/go/bin 中。我还使用了 go install 而不是 go get,并在网址末尾添加了我想要的版本,例如。 @v2.0.2

I had the same issue. When using the command bee is installed in home/go/bin. What I did was copy the bee file from there and paste it in usr/local/go/bin. Also I used go install instead of go get and at the end of the url I added the version I wanted, eg. @v2.0.2

静谧幽蓝 2025-01-21 08:23:37

是的。这很有用。我尝试执行

go install github.com/beego/bee/v2@master

我在我的 GOBIN 路径中找到了 bee.exe 文件

Yes. It's useful. I try to execute

go install github.com/beego/bee/v2@master

I found the bee.exe file in my GOBIN path

歌枕肩 2025-01-21 08:23:37

您需要确定GOPATH。如果没有,请创建一个名为 go 的文件夹,并且需要有 srcpkgbin > 文件夹。

安装成功后,您可以在bin文件夹中看到bee文件。

注意:您可以使用 go env 命令查看 go 环境。

You need to have GOPATH determination. If you don't, create a folder which named as go and it needs to have src,pkg,bin folders.

When you install successfully, you can see bee file in bin folder.

NOTE: You can see go environment with go env command.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文