Comments (5)
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.
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.
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.
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.
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)
- Unexpected request cancellations after upgrading gRPC-Java HOT 4
- io.grpc.netty.shaded.io.netty.util.internal.shaded.org.jctools.queues.MpscArrayQueue off-heap memory leak. Please help analyze it HOT 4
- Server side: OutOfDirectMemoryError HOT 4
- Getting gRPC unavailable during services rollout when using client side gRPC load balancing HOT 6
- [xDS] Client side Istio proxy fails to connect if gRPC server does not use netty-tcnative HOT 4
- How to close the netty thread named grpc-default-worker-ELG? HOT 3
- manjaro linux Unknown option: --proto_path HOT 3
- What does it mean when GRPC call fails with DEADLINE_EXCEEDED and waiting for connection HOT 2
- Does grpc-java fully supports openjdk 11 HOT 2
- What does "length" means in i.g.n.NettyClientHandler INBOUND DATA HOT 2
- GRPC Java MAX_CONCURRENT_STREAMS vs maxConcurrentCallsPerConnection HOT 1
- BinderChannel: allow kotlinx.serialization as protobuf alternative HOT 2
- Found one potential memory leak logic
- Examples fail to build on JDK 22 HOT 2
- Track OpenTelemetry Tracing being experimental
- connection reset using firebase firestore using Php and Html HOT 1
- Add a global TypeRegistry, similar to the Go implementation HOT 1
- MultiChildLb unconditionally calls requestConnection() HOT 4
- IS_PETIOLE_POLICY is not used by PickFirstLeafLoadBalancer
- Pumping to version 1.65.2 from version 1.62.2 gave the following error 'failed with code: BACKEND_FAILURE_URL_UNREACHABLE' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grpc-java.