swoole / grpc

💎 Grpc client based on Swoole Coroutine
Apache License 2.0
199 stars 20 forks source link

Not sure how to properly install #33

Open yellow1912 opened 2 years ago

yellow1912 commented 2 years ago

I'm trying to install this one, but I run into issues (probably due to mis-translation)

Anyhow, it seems to say that I should install Protobuf and grpc_php_plugin, but I should not enable these plugins? Does it mean I should not add the extensions to the conf.d folder of PHP?

Also, when I tried to run generate_grpc.sh I get the following error:

program not found or is not executable --grpc_out: protoc-gen-grpc: Plugin failed with status code 1.

Please let me know what I should do to fix this.

twose commented 2 years ago

https://github.com/grpc/grpc/tree/master/src/php#protocol-buffers

image
twose commented 2 years ago

No mis-translation I guess, do not usegrpc.so, but protobuf.so and grpc_php_plugin are needed.

yellow1912 commented 1 year ago

Installation of the php plugin was very confusing. I think you can add a link to this document here to help newbies like me:

https://github.com/grpc/grpc/tree/master/src/php#grpc_php_plugin-protoc-plugin

It took me a long time to figure this out.