英文:
Need help on setting up Beego and Bee dev tool
问题
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?
答案1
得分: 3
我遇到了同样的问题。当使用命令bee
时,它被安装在home/go/bin
目录下。我所做的是将bee
文件从那里复制并粘贴到usr/local/go/bin
目录下。此外,我使用了go install
而不是go get
,并在URL的末尾添加了我想要的版本,例如@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
答案2
得分: 1
是的,这很有用。我尝试执行以下命令:
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
答案3
得分: 0
你需要确定 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 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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论