Giter Site home page Giter Site logo

PS E:\GoProject\bin> .\kratos.exe tool install all kratos: 安装成功! ln: failed to create symbolic link 'E/bin/kprotoc': No such file or directory about kratos HOT 3 CLOSED

go-kratos avatar go-kratos commented on May 14, 2024
PS E:\GoProject\bin> .\kratos.exe tool install all kratos: 安装成功! ln: failed to create symbolic link 'E/bin/kprotoc': No such file or directory

from kratos.

Comments (3)

felixhao avatar felixhao commented on May 14, 2024

GOOS

  • macos: shoult always be successful, if not install protoc and gogo protobuf, then run:
    • cd kratos-demo/api
    • kratos tool kprotoc
    • cd kratos-demo/cmd & go build
  • windows: install protoc and gogo protobuf,then run:
    • cd kratos-demo/api
    • protoc --gogofast_out=plugins=grpc:$GOPATH/src api.proto
    • cd kratos-demo/cmd & go build
  • linux: install protoc first, then run:
    • cd kratos-demo/api
    • kratos tool kprotoc
    • cd kratos-demo/cmd & go build

protoc:https://github.com/protocolbuffers/protobuf#protocol-compiler-installation
gogo protobuf:https://github.com/gogo/protobuf
kratos tool:https://github.com/bilibili/kratos/blob/master/doc/wiki-cn/kratos-tool.md

from kratos.

xiaojia21190 avatar xiaojia21190 commented on May 14, 2024

PS E:\GoProject\src\kratos-demo\api> protoc --gogofast_out=plugins=grpc:$GOPATH/src api.proto
github.com/gogo/protobuf/gogoproto/gogo.proto: File not found.
api.proto: Import "github.com/gogo/protobuf/gogoproto/gogo.proto" was not found or had errors.
问一下这个该怎么解决,所有包都下了

from kratos.

xiaojia21190 avatar xiaojia21190 commented on May 14, 2024

image
这个bao包在pkg下面,这里执行的话,说找不到包

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.