The error message told us, that the build-time dependency (in this case it is
cc1) was not found, so all we need — install the appropriate package to the system (using package manager // from sources // another way)
cc1is the internal command which takes preprocessed C-language files and converts them to assembly. It's the actual part that compiles C. For C++, there's cc1plus, and other internal commands for different languages.
taken from this answer by Alan Shutko.
sudo apt-get update sudo apt-get install --reinstall build-essential
If you are in docker-alpine environment install the build-base package by adding this to your
RUN apk add build-base
Better package name provided by Pablo Castellano. More details here.
If you need more packages for building purposes, consider adding of the alpine-sdk package:
RUN apk add alpine-sdk
Taken from github
This answer contains instructions for CentOS and Fedora Linux
sudo yum install gcc72-c++
Taken from this comment by CoderChris
You could also try to install missed dependencies by this (though, it is said to not to solve the issue):
sudo yum install gcc-c++.noarch
Taken from this answer
~ Answered on 2017-06-22 20:00:34