Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安装出错 #20

Closed
bighuangbee opened this issue Nov 25, 2018 · 9 comments
Closed

安装出错 #20

bighuangbee opened this issue Nov 25, 2018 · 9 comments

Comments

@bighuangbee
Copy link

package golang.org/x/image/math/fixed: unrecognized import path "golang.org/x/image/math/fixed" (https fetch: Get https://golang.org/x/image/math/fixed?go-get=1: dial tcp 216.239.3
7.1:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host
has failed to respond.)
package golang.org/x/image/font: unrecognized import path "golang.org/x/image/font" (https fetch: Get https://golang.org/x/image/font?go-get=1: dial tcp 216.239.37.1:443: connectex
: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to res
pond.)

@eddycjy
Copy link
Owner

eddycjy commented Nov 25, 2018

缺少的第三方依赖包已重新添加到 vendor/ 中,现在应该可以了。麻烦你重新拉取一下

$ go get -u github.com/EDDYCJY/go-gin-example

@bighuangbee
Copy link
Author

还有错误
..\gopath\src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:64:3: undefined: syscall.SIGUSR1
..\gopath\src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:65:3: undefined: syscall.SIGUSR2
..\gopath\src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:68:3: undefined: syscall.SIGTSTP
..\gopath\src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:111:5: undefined: syscall.SIGUSR1
..\gopath\src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:112:5: undefined: syscall.SIGUSR2
..\gopath\src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:115:5: undefined: syscall.SIGTSTP
..\gopath\src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:119:5: undefined: syscall.SIGUSR1
..\gopath\src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:120:5: undefined: syscall.SIGUSR2
..\gopath\src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:123:5: undefined: syscall.SIGTSTP
..\gopath\src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:224:3: undefined: syscall.Kill
..\gopath\src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:224:3: too many errors

@eddycjy
Copy link
Owner

eddycjy commented Nov 25, 2018

@weihuahuang 你是 windows 系统?

@bighuangbee
Copy link
Author

是的

@eddycjy
Copy link
Owner

eddycjy commented Nov 25, 2018

@weihuahuang Windows 的话,把这块代码放出来:https://github.com/EDDYCJY/go-gin-example/blob/master/main.go#L39-L48

平滑重启这块的代码 Windows 不支持,因此要注释掉:https://github.com/EDDYCJY/go-gin-example/blob/master/main.go#L51-L62

@eddycjy
Copy link
Owner

eddycjy commented Nov 25, 2018

@weihuahuang 你环境上 runtime.GOOS 输出出来的值是什么呢?

@bighuangbee
Copy link
Author

删除了项目,重新拉取的时候报错。
D:\server\gopath>go get github.com/EDDYCJY/go-gin-example

github.com/EDDYCJY/go-gin-example/vendor/github.com/fvbock/endless

src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:64:3: undefined: syscall.SIGUSR1
src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:65:3: undefined: syscall.SIGUSR2
src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:68:3: undefined: syscall.SIGTSTP
src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:111:5: undefined: syscall.SIGUSR1
src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:112:5: undefined: syscall.SIGUSR2
src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:115:5: undefined: syscall.SIGTSTP
src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:119:5: undefined: syscall.SIGUSR1
src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:120:5: undefined: syscall.SIGUSR2
src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:123:5: undefined: syscall.SIGTSTP
src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:224:3: undefined: syscall.Kill
src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:224:3: too many errors

D:\server\gopath>
D:\server\gopath>
D:\server\gopath>
D:\server\gopath>
D:\server\gopath>
D:\server\gopath>go get github.com/EDDYCJY/go-gin-example

github.com/EDDYCJY/go-gin-example/vendor/github.com/fvbock/endless

src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:64:3: undefined: syscall.SIGUSR1
src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:65:3: undefined: syscall.SIGUSR2
src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:68:3: undefined: syscall.SIGTSTP
src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:111:5: undefined: syscall.SIGUSR1
src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:112:5: undefined: syscall.SIGUSR2
src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:115:5: undefined: syscall.SIGTSTP
src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:119:5: undefined: syscall.SIGUSR1
src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:120:5: undefined: syscall.SIGUSR2
src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:123:5: undefined: syscall.SIGTSTP
src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:224:3: undefined: syscall.Kill
src\github.com\EDDYCJY\go-gin-example\vendor\github.com\fvbock\endless\endless.go:224:3: too many errors

@eddycjy
Copy link
Owner

eddycjy commented Dec 2, 2018

@weihua2018 你应该

$ go get -u github.com/EDDYCJY/go-gin-example

@eddycjy
Copy link
Owner

eddycjy commented Dec 2, 2018

另外如果你是 windows 系统的话,应该把如下代码打开注释:https://github.com/EDDYCJY/go-gin-example/blob/master/main.go#L36-L46

把 endless 的相关代码给注释了:https://github.com/EDDYCJY/go-gin-example/blob/master/main.go#L48-L59

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants