Forked from sagikazarmark/install-grpc-php-on-mac.sh
Last active
June 10, 2020 22:26
-
-
Save kirinse/cc4ef1af56b81cefc2003962a8dcdfa8 to your computer and use it in GitHub Desktop.
Install the gRPC PHP plugin
This file contains hidden or 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
| # 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 | |
| # 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++ | |
| make | |
| make install | |
| cd ../.. | |
| make | |
| make grpc_php_plugin | |
| ++++++++++++++++++++++++++++++++ | |
| Mac OS 10.15, Not working with me, have error | |
| ./configure CC=clang CXX=clang++ | |
| Change: | |
| ./configure AR=/usr/bin/ar RANLIB=/usr/bin/ranlib |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment