Hi gRPC Community. I have been working on an RPM for gRPC on Fedora
Linux. I plan on going through the process of contributing the rpm to
Fedora, but have not started that yet. I'm looking for any feedback on
the rpm. I'm still working out the many rpmlint issues, but it is
currently usable.
To test you need to be on Fedora 26 or rawhide. I have the rpm up on
OBS[1]. Here is an example of running the C++ quickstart without
building gRPC or protobuf!
# Add my dnf repo
wget
http://download.opensuse.org/repositories/home:/jeffmendoza/Fedora_26/home:jeffmendoza.repo
sudo cp ./home\:jeffmendoza.repo /etc/yum.repos.d/
# Have a C++ dev environment
sudo dnf install gcc-c++ make git pkg-config
# Install grpc devel libs to build against, and the protoc plugin to
autogen grpc code from protos
sudo dnf install grpc-devel grpc-plugins
# Get some sample grpc code (don't actually need core grpc code)
git clone -b v1.4.1
https://github.com/grpc/grpc
cd grpc/examples/cpp/helloworld/
# Build sample code
make
# Works!
./greeter_server &
Server listening on
0.0.0.0:50051
./greeter_client
Greeter received: Hello world
[1]
https://build.opensuse.org/package/show/home:jeffmendoza/gRPC