Advertisement
akhfa

Install Protobuf Centos 7

Sep 27th, 2015
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.69 KB | None | 0 0
  1. #!/bin/bash
  2. yum install libtool
  3. git clone https://github.com/google/protobuf.git
  4. cd protobuf
  5. ./autogen.sh
  6. ./configure
  7. make
  8. make check
  9. sudo make install
  10. cd java
  11. yum install maven
  12. mvn test
  13. mvn install
  14. mvn package
  15.  
  16. git clone https://github.com/grpc/grpc-java.git
  17. cd grpc-java
  18. ./gradlew build
  19. ./gradlew install
  20. cd compiler
  21. ../gradlew java_pluginExecutable >& log.javacompiler
  22. sudo ln -s /home/protobuf/grpc-java/compiler/build/binaries/java_pluginExecutable/protoc-gen-grpc-java /usr/local/bin/
  23.  
  24. cd
  25. mkdir out
  26. protoc hello_world.proto --grpc-java_out=out --java_out=out
  27.  
  28. # lib dependencies
  29. wget -c http://search.maven.org/remotecontent?filepath=com/google/guava/guava/18.0/guava-18.0.jar
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement