Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bee command not found

Tags:

go

beego

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.

like image 847
Anders Andersen Avatar asked Sep 01 '25 01:09

Anders Andersen


2 Answers

vim .bashrc insert

export GOROOT=/usr/local/Cellar/go/1.7.4/libexec
export GOPATH=$HOME/GoLang
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin
like image 163
郭友进 Avatar answered Sep 03 '25 20:09

郭友进


You should have a path variable named GOBIN, and its path is the bin of your go root path. Run:

go install github.com/beego/bee

then bee cmd can be used

like image 40
little xian Avatar answered Sep 03 '25 19:09

little xian