3

I just started learning golang and beego. Yesterday I installed golang and bee. I had alot off trouble getting bee command in command line to work. At a point it started to work.

Today I wanted to continue development. But again it cant find bee command. As far as I know its something with the PATH variable. But everything seems to be right.

Here comes the different informations you might need to help.

Go is installed and works. Go is installed in:

/usr/local/go

My project folder for go development is placed in my documents folder:

/Users/Anders-air/Documents/go

in this folder i have both bin and src. Src contains my project and packages. And inside bin you will find bee (Unix Executable File)

My bash_profile

export GOPATH=/Users/Anders-air/Documents/go
export PATH=$PATH:/Users/Anders-air/Documents/go/bin

Hopes someone can help. By the way I am use OSX.

4

3 回答 3

4

vim .bashrc 插入

export GOROOT=/usr/local/Cellar/go/1.7.4/libexec
export GOPATH=$HOME/GoLang
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin
于 2016-12-14T07:42:35.757 回答
1

你应该有一个名为 GOBIN 的路径变量,它的路径是你的 go root 路径的 bin。跑:

go install github.com/beego/bee

然后可以使用bee cmd

于 2016-05-16T01:38:12.373 回答
0

似乎蜜蜂已被移除或安装方式不正确。再次运行 get 命令后,一切正常。

于 2015-08-09T17:12:51.883 回答