Skip to content

Commit 764b08d

Browse files
committed
binutils and alternative gcc for rhel
1 parent 7692a64 commit 764b08d

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

eng/pipelines/pr-validation-pipeline.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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++

0 commit comments

Comments
 (0)