Last active
October 26, 2016 03:15
-
-
Save johndpope/503029706ed56d5375d1e9469f0135d4 to your computer and use it in GitHub Desktop.
install grpc + dependencies + build(for Ubuntu 14.04)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/grpc/grpc/issues/662 | |
# https://gist.github.com/johndpope/503029706ed56d5375d1e9469f0135d4/edit | |
# wget https://gist.githubusercontent.com/johndpope/503029706ed56d5375d1e9469f0135d4/raw/2113dace7f54347288226625c916154d0232b19d/installCGPC.sh | |
# chmod +x installCGPC.sh | |
apt-get update | |
apt-get install -y build-essential autoconf libtool python-all-dev python-virtualenv zlib1g-dev libc++-dev libc++abi-dev bundler | |
sudo pip install -U grpcio | |
sudo pip install -U protobuf | |
# if Gem install bundler fails below | |
# RVM - Ruby Version Manager / bundler / Gemfiles | |
#curl -sSL https://get.rvm.io | bash | |
#source /etc/profile.d/rvm.sh | |
#rvm install ruby-2.2.3 | |
#gem install rvm | |
rm -rf grpc | |
git clone https://github.com/grpc/grpc.git | |
cd grpc | |
git submodule update --init | |
gem install bundler | |
bundle install | |
cd third_party/protobuf | |
sudo ./autogen.sh | |
sudo ./configure CC=clang CXX=clang++ | |
sudo make | |
sudo make install | |
sudo ldconfig | |
cd ../.. | |
make | |
make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment