Installing G++4.8.5 or 4.9 on RHEL 8.0

Posted on

Hi,

Looks like the latest RHEL 8.0 comes with only GCC 8.2. I have application that has dependencies on GCC 4.8.5 / 4.9.

What is the best way to install the GCC 4.8.5 on the RHEL 8.0 ?

Since the devtoolset is moved away I don't fine the devtoolset-4 in appstream subscriptions.

Any pointers will be helpful.

Thanks,
Raj

Currently enabled repos.

Updating Subscription Management repositories.
Last metadata expiration check: 0:46:25 ago on Wed 06 Nov 2019 07:51:01 PM PST.
repo id                                                                                  repo name                                                                                                        status
*epel                                                                                    Extra Packages for Enterprise Linux 8 - x86_64                                                                   2,910
rhel-8-for-x86_64-appstream-rpms                                                         Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)                                                         8,221
rhel-8-for-x86_64-baseos-rpms                                                            Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)                                                            3,268

Current system status

+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name:   Red Hat Enterprise Linux for x86_64
Product ID:     479
Version:        8.1
Arch:           x86_64
Status:         Subscribed
Status Details:

Consumed

+-------------------------------------------+
   Consumed Subscriptions
+-------------------------------------------+
Subscription Name:   Red Hat OpenShift Container Platform Broker/Master Infrastructure
Provides:            Red Hat Beta
                     Red Hat OpenShift Container Platform
                     Red Hat OpenShift Enterprise Infrastructure
                     Red Hat Enterprise Linux Atomic Host
                     Red Hat CodeReady Linux Builder for x86_64
                     Oracle Java (for RHEL Server)
                     Red Hat OpenShift Enterprise Client Tools
                     Red Hat CloudForms
                     Red Hat Software Collections (for RHEL Server)
                     Red Hat CodeReady Linux Builder for x86_64 - Extended Update Support
                     Red Hat Enterprise Linux for x86_64
                     Red Hat CloudForms Beta
                     Red Hat Enterprise Linux Fast Datapath Beta for x86_64
                     Red Hat Software Collections Beta (for RHEL Server)
                     Red Hat OpenShift Service Mesh
                     Red Hat Enterprise Linux for x86_64 - Extended Update Support
                     dotNET on RHEL (for RHEL Server)
                     dotNET on RHEL Beta (for RHEL Server)
                     Red Hat Enterprise Linux Fast Datapath
                     Red Hat Ansible Engine
                     Red Hat Enterprise Linux Server
SKU:                 MCT2741
Contract: