英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论