需要帮助设置Beego和Bee开发工具。

huangapple go评论78阅读模式
英文:

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 &#39;bee&#39; not found, did you mean:

  command &#39;tee&#39; from deb coreutils (8.30-3ubuntu2)
  command &#39;see&#39; from deb mime-support (3.64ubuntu1)

Try: sudo apt install &lt;deb name&gt;

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.

huangapple
  • 本文由 发表于 2022年3月15日 15:49:28
  • 转载请务必保留本文链接:https://go.coder-hub.com/71478615.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定