update PHP readme

pull/23412/head
Jan Tattermusch 5 years ago
parent 91f36feac8
commit a89b0de291
  1. 11
      src/php/README.md

@ -51,15 +51,15 @@ Clone this repository at the [latest stable release tag](https://github.com/grpc
```sh ```sh
$ git clone -b RELEASE_TAG_HERE https://github.com/grpc/grpc $ git clone -b RELEASE_TAG_HERE https://github.com/grpc/grpc
$ cd grpc
``` ```
#### Build and install the gRPC C core library #### Build the gRPC C core library
```sh ```sh
$ cd grpc
$ git submodule update --init $ git submodule update --init
$ EXTRA_DEFINES=GRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK make $ EXTRA_DEFINES=GRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK make
$ [sudo] make install $ make
``` ```
#### Build and install the `grpc` extension #### Build and install the `grpc` extension
@ -67,9 +67,10 @@ $ [sudo] make install
Compile the `grpc` extension from source Compile the `grpc` extension from source
```sh ```sh
$ cd grpc/src/php/ext/grpc $ grpc_root="$(pwd)"
$ cd src/php/ext/grpc
$ phpize $ phpize
$ ./configure $ ./configure --enable-grpc="${grpc_root}"
$ make $ make
$ [sudo] make install $ [sudo] make install
``` ```

Loading…
Cancel
Save