在Google Go中安装外部包

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

Install external package in Google Go

问题

我试图在GO语言中安装外部包。我在http://godashboard.appspot.com/package上找到了许多外部包。
我正在使用Windows系统。

我尝试使用以下命令安装go-router包。

goinstall go-router.googlecode.com/svn/trunk

结果出现以下错误....

C:\cygwin\bin\bash.exe: === cd c:\go\src\pkg\go-router.googlecode.com\svn\trunk;
bash gomake -f- install
/cygdrive/c/go/bin/gomake: line 3: exec: make: not found
--- exit status 127
goinstall: go-router.googlecode.com/svn/trunk: install: running bash: exit status 127

我无法找出错误的原因和状态码的含义。我已经阅读了goinstall命令的描述,但没有运气。

英文:

I was trying to install external packages in GO language. I've found many external packages at http://godashboard.appspot.com/package.
I am working on windows system.

I tried this command to install go-router package.

goinstall go-router.googlecode.com/svn/trunk

This resulted in following error....

C:\cygwin\bin\bash.exe: === cd c:\go\src\pkg\go-router.googlecode.com\svn\trunk;
bash gomake -f- install
/cygdrive/c/go/bin/gomake: line 3: exec: make: not found
--- exit status 127
goinstall: go-router.googlecode.com/svn/trunk: install: running bash: exit status 127

I am unable to find out the reason for the error and the meaning of status code. I've read the goinstall command description but no luck..

答案1

得分: 3

似乎缺少make命令。请确保已安装并且PATH变量定义正确。

英文:

It seems make command is missing. Make sure it's installed and that PATH variable is defined correctly.

huangapple
  • 本文由 发表于 2011年8月25日 01:12:27
  • 转载请务必保留本文链接:https://go.coder-hub.com/7179527.html
匿名

发表评论

匿名网友

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

确定