Coder Social home page Coder Social logo

windows err about kratos HOT 5 CLOSED

go-kratos avatar go-kratos commented on July 18, 2024
windows err

from kratos.

Comments (5)

felixhao avatar felixhao commented on July 18, 2024 1

@gie777 因为 kprotoc工具是一个shell脚本,所以只能在macos或Linux机器上运行,目前还没有windows bat的支持。
如果可行,建议装个linux虚拟机完成上面操作。
也可以直接从 git clone https://github.com/bilibili/kratos-demo的代码来进行二次修改运行。

from kratos.

gie777 avatar gie777 commented on July 18, 2024
$ go env
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\Administrator\AppData\Local\go-build
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=d:\www\
set GOPROXY=
set GORACE=
set GOROOT=D:\Go
set GOTMPDIR=
set GOTOOLDIR=D:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\ADMINI~1\AppData\Local\Temp\go-build466831162=/tmp/go-build -gno-record-gcc-switche

from kratos.

gie777 avatar gie777 commented on July 18, 2024

还有,在MINGW64 用命令报错cmd下没事
$ kratos init
? 你想怎么玩? [Use arrows to move, space to select, type to filter]

一键初始化项目
自定义项目参数
panic: The handle is invalid.

goroutine 1 [running]:
main.main()
d:/www/src/github.com/bilibili/kratos/tool/kratos/main.go:70 +0x7c7

from kratos.

whtiehack avatar whtiehack commented on July 18, 2024

上面这个错误是 survey对windows的支持有问题。

from kratos.

gie777 avatar gie777 commented on July 18, 2024

@ gie777因为kprotoc工具是一个shell脚本,所以只能在macos或Linux机器上运行,目前还没有windows bat的支持。
如果可行,建议装个linux虚拟机完成上面操作。
也可以直接从git clone https://github.com/bilibili/kratos-demo的代码来进行二次修改运行。

嗯,已经解决了,从那边复制了一个代码过来了,

from kratos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.