aceld / zinx

A lightweight concurrent server framework based on Golang.
https://github.com/aceld/zinx/wiki
MIT License
7.07k stars 1.21k forks source link

win10 下怎么启动zinx服务 #105

Open LionSummer opened 3 years ago

LionSummer commented 3 years ago

PS D:\Server\zinx\zinx\zinx_app_demo\mmo_game> go run .\server.go
server.go:6:2: cannot find package "github.com/aceld/zinx/ziface" in any of: E:\Software\Go\src\github.com\aceld\zinx\ziface (from $GOROOT) C:\Users\admin\go\src\github.com\aceld\zinx\ziface (from $GOPATH) server.go:7:2: cannot find package "github.com/aceld/zinx/zinx_app_demo/mmo_game/api" in any of: E:\Software\Go\src\github.com\aceld\zinx\zinx_app_demo\mmo_game\api (from $GOROOT) C:\Users\admin\go\src\github.com\aceld\zinx\zinx_app_demo\mmo_game\api (from $GOPATH) server.go:8:2: cannot find package "github.com/aceld/zinx/zinx_app_demo/mmo_game/core" in any of: E:\Software\Go\src\github.com\aceld\zinx\zinx_app_demo\mmo_game\core (from $GOROOT) C:\Users\admin\go\src\github.com\aceld\zinx\zinx_app_demo\mmo_game\core (from $GOPATH) server.go:9:2: cannot find package "github.com/aceld/zinx/znet" in any of: E:\Software\Go\src\github.com\aceld\zinx\znet (from $GOROOT) C:\Users\admin\go\src\github.com\aceld\zinx\znet (from $GOPATH)

aceld commented 3 years ago

检查一下系统环境变量$GOROOT 和 $GOPATH是否配置正确