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

1

GOBIN という名前のパス変数が必要で、そのパスは go ルート パスの bin です。走る:

go install github.com/beego/bee

次に、bee cmdを使用できます

于 2016-05-16T01:38:12.373 に答える
0

ハチが削除されたか、正しい方法でインストールされていないようです。get コマンドを再度実行すると、すべてが機能します。

于 2015-08-09T17:12:51.883 に答える