doujishao8793 2017-08-21 16:18
浏览 492

找不到命令“ bee”

I am trying to run a project that uses beego framework. When I try to run the project I encounter the following problem every time.

No command 'bee' found, did you mean:
 Command 'bel' from package 'belier' (universe)
 Command 'bbe' from package 'bbe' (universe)
 Command 'pee' from package 'moreutils' (universe)
 Command 'beep' from package 'beep' (universe)
 Command 'ree' from package 'ree' (universe)
 Command 'beet' from package 'beets' (universe)
 Command 'ben' from package 'ben' (universe)
 Command 'beer' from package 'gerstensaft' (universe)
 Command 'be' from package 'bugs-everywhere' (universe)
 Command 'see' from package 'mime-support' (main)
 Command 'tee' from package 'coreutils' (main)
 Command 'btee' from package 'ruby-bcat' (universe)
 Command 'beef' from package 'beef' (universe)
bee: command not found

My Go Environment : ($ go env)

GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/MYNAME/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build235821315=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"

My Environment declerations in bash_profile :

PATH="$HOME/bin:$HOME/.local/bin:$PATH"
export GOPATH=$HOME/work
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
export PATH="$GOPATH/bin:$PATH"'

Where am i doing wrong? What should i do?

  • 写回答

1条回答 默认 最新

  • douji4948 2017-08-21 16:24
    关注

    As bee is not available by default in Go, you have to install it first using go get command or copying it manually to $GOPATH/src or $GOPATH, as follows:

     go get github.com/beego/bee
    
    评论

报告相同问题?

悬赏问题

  • ¥15 Python爬取指定微博话题下的内容,保存为txt
  • ¥15 vue2登录调用后端接口如何实现
  • ¥65 永磁型步进电机PID算法
  • ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
  • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
  • ¥15 如何处理复杂数据表格的除法运算
  • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
  • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
  • ¥15 latex怎么处理论文引理引用参考文献
  • ¥15 请教:如何用postman调用本地虚拟机区块链接上的合约?