问题
I am trying this sample code from "https://docs.docker.com/compose/gettingstarted on Python installed on RedHat enterprise linux 7 / 8 image.
Getting error 127 on this line RUN apk add --no-cache git gcc musl-dev linux-headers
Thanks
回答1:
On Red Hat Enterprise Linux, installing the gcc
package installs both the system C compiler and the C library development files, including the required UAPI kernel headers. So this command is sufficient to install a C development environment:
yum install gcc
If you need the C++ compiler, you should use this instead:
yum install gcc-c++
来源:https://stackoverflow.com/questions/61347929/redhats-rhel8-equivalent-of-apk-add-no-cache-gcc-musl-dev-linux-headers