File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -437,8 +437,13 @@ jobs:
437437 subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms || dnf config-manager --set-enabled ubi-9-codeready-builder
438438
439439 # Install Python 3.9 (available in RHEL 9 UBI) and development tools
440- dnf install -y python3 python3-pip python3-devel cmake curl wget gnupg2 gcc gcc-c++ make glibc-devel kernel-headers
440+ dnf install -y python3 python3-pip python3-devel cmake curl wget gnupg2 gcc gcc-c++ make glibc-devel kernel-headers binutils
441441
442+ # If that doesn't work, try installing from different repositories
443+ if ! which gcc; then
444+ echo 'Trying alternative gcc installation...'
445+ dnf --enablerepo=ubi-9-codeready-builder install -y gcc gcc-c++
446+ fi
442447 # Verify installation
443448 python3 --version
444449 which gcc && which g++
You can’t perform that action at this time.
0 commit comments