RHEL9 configure: error: no acceptable C compiler found in $PATHエラー解消方法
環境
# cat /etc/redhat-release
Red Hat Enterprise Linux release 9.2 (Plow)
エラー現象
# ./configure --prefix=/usr/local/python2 checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking for python2.7... no checking for python3... python3 checking for --enable-universalsdk... no checking for --with-universal-archs... no checking MACHDEP... linux2 checking EXTRAPLATDIR... checking for --without-gcc... no checking for --with-icc... no checking for gcc... no checking for cc... no checking for cl.exe... no configure: error: in `/tmp/Python-2.7.18': configure: error: no acceptable C compiler found in $PATH See `config.log' for more details
対策
# dnf install gcc