需要有关设置 Beego 和 Bee 开发工具的帮助
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我有同样的问题。使用命令 bee 时安装在
home/go/bin
中。我所做的就是从那里复制 bee 文件并将其粘贴到 usr/local/go/bin 中。我还使用了 go install 而不是 go get,并在网址末尾添加了我想要的版本,例如。 @v2.0.2I 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 inusr/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是的。这很有用。我尝试执行
我在我的
GOBIN
路径中找到了bee.exe
文件Yes. It's useful. I try to execute
I found the
bee.exe
file in myGOBIN
path您需要确定
GOPATH
。如果没有,请创建一个名为go
的文件夹,并且需要有src
、pkg
、bin
> 文件夹。安装成功后,您可以在
bin
文件夹中看到bee
文件。注意:您可以使用
go env
命令查看 go 环境。You need to have
GOPATH
determination. If you don't, create a folder which named asgo
and it needs to havesrc
,pkg
,bin
folders.When you install successfully, you can see
bee
file inbin
folder.NOTE: You can see go environment with
go env
command.