ochinchina / supervisord

a go-lang supervisor implementation
MIT License
4.03k stars 568 forks source link

Failed to install supervisord on Windows 10 based on the newest version! #253

Open yuantingzhong opened 3 years ago

yuantingzhong commented 3 years ago

When I install it with "go get" and "go build", I get an error message "ochinchina\supervisord\main.go:171:6: undefined: Daemonize" , as follows:

C:\Users\YUANTINGZHONG>go get -v -u github.com/ochinchina/supervisord
github.com/ochinchina/supervisord (download)

C:\Users\YUANTINGZHONG>go build github.com/ochinchina/supervisord
github.com/ochinchina/supervisord
D:\Go\src\github.com\ochinchina\supervisord\main.go:171:6: undefined: Daemonize

then I download the supervisord to my computer and compile it with "go build", I also get an error message as follows:

PS E:\process_manager\supervisord-master> set GO111MODULE=on
PS E:\process_manager\supervisord-master> set GOPROXY=https://goproxy.cn
PS E:\process_manager\supervisord-master> go build .\main.go
command-line-arguments
.\main.go:38:21: undefined: Supervisor
.\main.go:130:8: undefined: NewSupervisor
.\main.go:158:2: undefined: ReapZombie
.\main.go:171:6: undefined: Daemonize
note: module requires Go 1.15
PS E:\process_manager\supervisord-master>

plus:

C:\Users\YUANTINGZHONG>go version
go version go1.13.6 windows/amd64

So did I do anything wrong? And what should I do to compile it on Windows 10?? Thanks very much!

ochinchina commented 3 years ago

fixed, please try it

itapai commented 3 years ago

I am still getting this error.

go get github.com/ochinchina/supervisord      
# github.com/ochinchina/supervisord
..\..\go\pkg\mod\github.com\ochinchina\supervisord@v0.7.3\main.go:171:6: undefined: Daemonize
go version
go version go1.16.4 windows/amd64
itapai commented 3 years ago

Works when I try to

go get github.com/ochinchina/supervisord@master

Will wait for next release, I guess.