2

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

Jason R Stevens CFA
  • 1,421
  • 17
  • 25
Shiva RN
  • 21
  • 2
  • Follow - https://stackoverflow.com/questions/6513731/linux-yum-install-gcc-missing-kernel-headers yum install kernel-headers --disableexcludes=all – Shiva RN Apr 21 '20 at 16:37
  • this doesn't refer to airflow, I think, so could you remove the airflow tag please? – PirateNinjas Apr 23 '20 at 14:19

1 Answers1

0

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++
Florian Weimer
  • 29,521
  • 3
  • 37
  • 79