Skip to content

Instantly share code, notes, and snippets.

@betapcode
Forked from sagikazarmark/install-grpc-php-on-mac.sh
Last active November 4, 2021 11:13
Show Gist options
  • Save betapcode/ce88d2ae4cad5764113f314cdebd539e to your computer and use it in GitHub Desktop.
Save betapcode/ce88d2ae4cad5764113f314cdebd539e to your computer and use it in GitHub Desktop.
Install the gRPC PHP plugin
# Install the gRPC PHP plugin on Mac
#
# See: http://www.grpc.io/docs/quickstart/php.html#install-protobuf-plugin
# Source: https://gist.github.com/johndpope/503029706ed56d5375d1e9469f0135d4
# C1:
# ================================================================================================
# Install build dependencies
brew install automake libtool
## Clone gRPC repo
git clone --recursive -b v1.4.x https://github.com/grpc/grpc
cd grpc
cd third_party/protobuf
./autogen.sh
# ./configure CC=clang CXX=clang++
./configure AR=/usr/bin/ar RANLIB=/usr/bin/ranlib
make
make install
cd ../..
make
make grpc_php_plugin
# C2:
# ================================================================================================
brew tap grpc/grpc
brew install grpc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment