debuild通知:make[1]:go命令未找到

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

debuild notify make[1]: go: Command not found

问题

我需要为我的Golang程序构建一个deb包。

当我运行debuild -uc -us时,它显示以下信息:

fakeroot debian/rules clean 
dh clean  
dh_testdir  
dh_auto_clean  
make[1]: 进入目录 `/home/vagrant/zbus'  
go clean ./zbus-cli/  
make[1]: go: 命令未找到  
make[1]: *** [clean] 错误 127  
make[1]: 离开目录 `/home/vagrant/zbus'  
dh_auto_clean: make -j1 clean 返回退出码 2  

我的Go编译器已经正确安装,为什么还是找不到该命令?

英文:

I need to build a deb for my golang program.

When I run debuild -uc -us it tells:

fakeroot debian/rules clean 
dh clean  
dh_testdir  
dh_auto_clean  
make[1]: Entering directory `/home/vagrant/zbus'  
go clean ./zbus-cli/  
make[1]: go: Command not found  
make[1]: *** [clean] Error 127  
make[1]: Leaving directory `/home/vagrant/zbus'  
dh_auto_clean: make -j1 clean returned exit code 2  

my go compiler is installed correctly, why it still command not found?

答案1

得分: 5

显然,我刚刚遇到了这个问题,并发现缺少一个包来使用这个go命令。

在Ubuntu上,我需要安装golang-go包。

sudo apt-get install golang-go

此外,我实际上只是在终端中输入了go,然后它给了我相同的命令来检索该包。

英文:

Apparently, I just had this problem and found that a package was missing to use this <code>go</code> command.

On Ubuntu, I had to install the <code>golang-go</code> package.

sudo apt-get install golang-go

Also, I actually just typed <code>go</code> at the terminal and it gave me the same command to type to retrieve that package.

huangapple
  • 本文由 发表于 2013年10月8日 16:02:53
  • 转载请务必保留本文链接:https://go.coder-hub.com/19242268.html
匿名

发表评论

匿名网友

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

确定