bee不可执行

huangapple go评论65阅读模式
英文:

bee is not executable

问题

使用ubuntu15.go获取github.com/beego/bee

root@hao:/var/www/go/bin# ls
bee
root@hao:/var/www/go/bin# bee
未找到 'bee' 命令。(未找到Bee命令)

配置文件:

export GOPATH=/var/www/go
export GOROOT=/usr/local/go
export PATH=$GOROOT/bin:$PATH
英文:

Using ubuntu15.go get github.com/beego/bee

root@hao:/var/www/go/bin# ls
bee
root@hao:/var/www/go/bin# bee
未找到 'bee' 命令.(Bee command not found)

profile:

export GOPATH=/var/www/go
export GOROOT=/usr/local/go
export PATH=$GOROOT/bin:$PATH

答案1

得分: 0

首先,请检查你的二进制文件是否可执行(运行 ls -l),并检查你的用户权限中是否包含了 "x"(如果不确定,只需运行 chmod +x bee)。

其次,在Unix系统中执行二进制文件,你应该输入 ./bee

英文:

first check that your binary is executable (run ls -l) and check that "x" is part of the permission of your user (if you're not sure, just run chmod +x bee)

Second, to execute a binary in unix you should type ./bee

huangapple
  • 本文由 发表于 2017年6月22日 17:11:50
  • 转载请务必保留本文链接:https://go.coder-hub.com/44695088.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定