Protoc Failed Error /bin/sh Protoc Command Not Found
here for a quick overview of the site Help Center make protoc command not found caffe Detailed answers to any questions you might have Meta Discuss
Make Protoc Command Not Found Ubuntuthe workings and policies of this site About Us Learn more about Stack Overflow the fatal error: google/protobuf/stubs/common.h: no such file or directory company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss install protoc mac Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up how to solve /bin/sh: protoc: command not found? up vote 1 down vote favorite I have installed protobuf 2.5.0
Install Protoc Ubuntuin my CentOs, when i execute the command protoc --version, it yields libprotoc 2.5.0 as output. but Once I have pulled code from git and when I try to compile it using Maven3, the proto module throws error saying, protoc failed error: /bin/sh: protoc: command not found I refereed many blogs and also did try to change my bashrc path as follows, export JAVA_HOME=/opt/java/jdk1.7.0_67 export PATH=$PATH:/opt/java/jdk1.7.0_67/bin export PATH=$PATH:/usr/local/lib but if I execute, sudo yum install protobuf-compiler it installs protobuf2.3 compiler and this particular error gets solved. But since my pom file has protobuf 2.5.0, java abstract method error arises during the next compilation. I'm stuck on how to proceed. I've spend many hrs in it, so any help is much appreciated. my pom file for the proto module,
Sign in Pricing Blog Support Search GitHub This repository Watch 520 protoc src/caffe/proto/caffe.proto make: protoc: command not found Star 2,680 Fork 1,630 chenshuo/muduo Code Issues 7 Pull requests protoc command not found mac 7 Projects 0 Wiki Pulse Graphs New issue Build error: protoc: not found #48
Unrecognized Syntax Identifier "proto3". This Parser Only Recognizes "proto2".Closed nyankosama opened this Issue Jul 16, 2014 · 2 comments Projects None yet Labels None yet Milestone No milestone Assignees http://stackoverflow.com/questions/30914623/how-to-solve-bin-sh-protoc-command-not-found No one assigned 2 participants nyankosama commented Jul 16, 2014 Here, i met a build error, whose error message is displayed as follow: [ 46%] Built target zlibstream_unittest [ 46%] Built target muduo_protobuf_codec [ 46%] Built target muduo_protobuf_codec_cpp11 [ 46%] Generating rpc.pb.cc, rpc.pb.h /bin/sh: 1: protoc: not https://github.com/chenshuo/muduo/issues/48 found make: *** [muduo/net/protorpc/rpc.pb.cc] Error 127 make: *** [muduo/net/protorpc/CMakeFiles/muduo_protorpc_wire.dir/all] Error 2 make: *** [all] Error 2 It seems not helpful to install libprotoc-dev Here is my environment: Linux ubuntu 3.8.0-29-generic #42~precise1-Ubuntu SMP Wed Aug 14 16:19:23 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux huahang commented Jul 16, 2014 try sudo apt-get install protobuf-compiler? 👍 2 nyankosama commented Jul 16, 2014 It works, thank you very much! nyankosama closed this Jul 16, 2014 Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment Contact GitHub API Training Shop Blog About © 2016 GitHub, Inc. Terms Privacy Security Status Help You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
von GoogleAnmeldenAusgeblendete FelderNach Gruppen oder Nachrichten suchen
its installation on Mac. Protocol Buffer Introduction We can find the guide/overview about protocol buffer at Google Protocol Buffer, some key concepts about protocol buffer: The stable version is proto2 and it officially only supports Java/C++/Python What are protocol buffers?Protocol buffers are a flexible, efficient, automated mechanism for serializing structured data, think XML, but smaller, faster, and simpler. We define how we want our data to be structured once, then we can use special generated source code to easily write and read our structured data to and from a variety of data streams and using a variety of languages. We can even update our data structure without breaking deployed programs that are compiled against the “old” format required, optional, repeated these three keywords specify the quantification of the fields Protocol buffers have many advantages over XML for serializing structured data. Protocol buffers:are simpler are 3 to 10 times smaller are 20 to 100 times faster are less ambiguous generate data access classes that are easier to use programmatically However, protocol buffers are not always a better solution than XML, for instance, protocol buffers would not be a good way to model a text-based document with markup (e.g. HTML), since we cannot easily interleave structure with text. In addition, XML is human-readable and human-editable; protocol buffers, at least in their native format, are not. XML is also to some extent self-describing. A protocol buffer is only meaningful if we have the message definition (the .proto file). proto2 only does serializing/deserialization, we have to come up with our own network layer/RPC framework to achieve RPC proto3 and gRPC are quite new and in alpha stage, when these two are stable, protocol buffer will be more enriched and more like