Giter Site home page Giter Site logo

Comments (5)

kannanjgithub avatar kannanjgithub commented on August 15, 2024

The exe extension is a file format for plugins, as it is a plugin for the protoc compiler and it works on Linux also.
Are you able to invoke the plugin from the command line directly using protoc and providing the downloaded plugin path, for ex., with

protoc --plugin=protoc-gen-grpc-java=/usr/local/homej/Downloads/protoc-gen-grpc-java-1.64.0-linux-x86_64.exe --grpc-java_out=gen-files/ --proto_path=path/to/my/test.proto

I found a similar reported error for Alpine Linux container here. Can you confirm which flavor of Linux you are using?

from grpc-java.

ejona86 avatar ejona86 commented on August 15, 2024

protoc-3.7.1 is really old, from 2019. But I don't think that is likely to be the cause. Can you try using our examples and seeing if they build? https://github.com/grpc/grpc-java/blob/master/examples/pom.xml

FWIW, nothing here is actually grpc-java, as we don't maintain the maven plugin nor protoc itself.

from grpc-java.

llj37825 avatar llj37825 commented on August 15, 2024

protoc-3.7.1 is really old, from 2019. But I don't think that is likely to be the cause. Can you try using our examples and seeing if they build? https://github.com/grpc/grpc-java/blob/master/examples/pom.xml

FWIW, nothing here is actually grpc-java, as we don't maintain the maven plugin nor protoc itself.

System Information:

Linux bd937df84756 5.4.262-1.el7.elrepo.x86_64 #1 SMP Wed Nov 29 00:56:30 EST 2023 x86_64 Linux
Issue:

To verify the existence of the protoc file, I entered the container and found the file protoc-3.17.2-linux-x86_64.exe (I switched the version). Even though the file exists, when I navigate to its directory and execute the command:

bash
protoc-3.17.2-linux-x86_64.exe --version
I still get an error saying the file does not exist. Here are the steps I followed:

Download and unzip the file:

bash
curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v3.17.2/protoc-3.17.2-linux-x86_64.zip
unzip protoc-3.17.2-linux-x86_64.zip -d protoc3

bash
mv protoc3/bin/* /usr/local/bin/
mv protoc3/include/* /usr/local/include/
chmod +x /usr/local/bin/protoc

After performing the above steps, when I execute the command:

bash
protoc --version
I receive the error that the protoc file does not exist.

from grpc-java.

ejona86 avatar ejona86 commented on August 15, 2024

Using com.google.protobuf:protoc:3.7.1:exe:${os.detected.classifier} with protobuf-maven-plugin will download the file from Maven Central.

When you copied the file to /usr/local/bin, what was your PATH?

from grpc-java.

ejona86 avatar ejona86 commented on August 15, 2024

No response to provide more information, so closing. I'm actually hoping it was resolved and they just didn't get back to us. More information can be provided and then we can reopen.

from grpc-java.

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.