Questions & Answers

pecl install grpc for php8.1 on Ubuntu 20.04 failed

I tried to use pecl to install grpc for php on ubuntu 20.04 and was expecting a successful installation. Installation got stuck at some point, then failed. This error was the final output, how can i resolve this?


g++: fatal error: Killed signal terminated program cc1plus compilation terminated.

make: *** [Makefile:1428: src/core/ext/xds/xds_server_config_fetcher.lo] Error 1

ERROR: `make' failed

2023-01-07 20:30:18
It's far from clear what you even did, please extract a minimal reproducible example to include in a description. However, this might be the topic for a bug report, rather than a SO question. Did you check the according bugtrackers, btw.?
2023-01-07 20:30:18
Please provide enough code so others can better understand or reproduce the problem.
Answers(1) :


Resized the droplet, from 1gb to 4gb, and it worked; build completed.

I hope this helps someone.

2023-01-07 20:30:18
Yep, Killed generally means you've run out of memory.