Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- yum install libtool
- git clone https://github.com/google/protobuf.git
- cd protobuf
- ./autogen.sh
- ./configure
- make
- make check
- sudo make install
- cd java
- yum install maven
- mvn test
- mvn install
- mvn package
- git clone https://github.com/grpc/grpc-java.git
- cd grpc-java
- ./gradlew build
- ./gradlew install
- cd compiler
- ../gradlew java_pluginExecutable >& log.javacompiler
- sudo ln -s /home/protobuf/grpc-java/compiler/build/binaries/java_pluginExecutable/protoc-gen-grpc-java /usr/local/bin/
- cd
- mkdir out
- protoc hello_world.proto --grpc-java_out=out --java_out=out
- # lib dependencies
- 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