Skip to content

Instantly share code, notes, and snippets.

@johndpope
Last active October 26, 2016 03:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johndpope/503029706ed56d5375d1e9469f0135d4 to your computer and use it in GitHub Desktop.
Save johndpope/503029706ed56d5375d1e9469f0135d4 to your computer and use it in GitHub Desktop.
install grpc + dependencies + build(for Ubuntu 14.04)
# 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
rm -rf grpc-1
git clone https://github.com/johndpope-karhoo/grpc-1 #https://github.com/timburks/grpc needs updating otherwise you see protoc out of date error messages
mv grpc-1 grpc
cd grpc
git submodule update --init
git checkout swift3
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