我正在尝试运行使用beego框架的项目。当我尝试运行项目时,每次都遇到以下问题。
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
我的环境:( $ 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"
我在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"'
我在哪里做错了?我该怎么办?
答案 0 :(得分:3)
由于bee默认情况下在Go中不可用,您必须先使用go get
命令安装它,或者手动将其复制到$GOPATH/src
或$GOPATH
,如下所示:
go get github.com/beego/bee