Install Developer Toolset 1.1 (gcc 4.7) onto RHEL 5
I have a legacy RHEL 5 system and need to install an application that requires gcc 4.7.
The compatability section of https://access.redhat.com/documentation/en-US/Red_Hat_Developer_Toolset/1/html/User_Guide/sect-Red_Hat_Developer_Toolset-Compatibility.html. Does not claim to be able to build and run on RHEL 5. Will this work for me?
Also https://access.redhat.com/solutions/19458 does not list gcc 4.7 as being compatible with RHEL 5.
Is there a way forward for me?
Andrew
Responses
Hi Andrew,
The compatibility table shows on what versions of RHEL will your binaries run when you build these binaries using tools from specific versions of DTS. In other words, unless you need to build binaries on your RHEL5 and then run them elsewhere, this shouldn't concern you -- when you use gcc to build a binary, it should always run on the system where you built it.
As for the list of gcc versions in the solution you link -- DTS was made available specifically for situations where newer versions of tools are not available on a particular RHEL version. In other words, as long as you can install DTS, you can use the tools it provides (incl. gcc).
That said, please, consider upgrading. DTS 1.x is no longer supported, and support for RHEL5 is very limited. See Red Hat Developer Toolset Product Life Cycle.
Yes, building in DTS-provided Eclipse will use the DTS-provided toolchain. Make sure you have the devtoolset-2-toolchain package installed before starting Eclipse.)
If you ever wish to use 'DTS Eclipse' with the RHEL-provided toolchain, there are some extra steps to perform. (See Using Eclipse in the DTS 2 User Guide for info on both scenarios.)
Hi Andrew,
It looks like your program requires a higher version (2.8) of the standard C library (glibc). RHEL 5.x only has glibc 2.5. It might be possible to upgrade glibc without upgrading the whole system (see Upgrading the GNU C Library within Red Hat Enterprise Linux, but it's a non-trivial exercise, and it might lead other problems.
RHEL 6 has glibc 2.12.
Hint: When including console output or source code in a comment, put it in between three tildas, like so:
~~~
output
~~~
It's not that naive (see the blogpost I linked), but there's a lot of unknowns, and you might end up spending a considerable amount of time getting the rest of the system working with the new glibc.
On the other hand, you mentioned in your other thread (https://access.redhat.com/discussions/2718031 that the system in question (I assume it's the same one) is embedded. An embedded system might just be minimal enough to work with a newer glibc. I'm just guessing, of course.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
