Redhat's RHEL8 equivalent of “apk add --no-cache gcc musl-dev linux-headers”

百般思念 提交于 2021-01-04 07:52:47

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!