[CentOS] Package of GCC 12 on CentOS 7

Mon Jun 20 14:35:19 UTC 2022
Mike Burger <mburger at bubbanfriends.org>

On 2022-06-20 09:38, Pete Biggs wrote:
> On Mon, 2022-06-20 at 09:20 -0400, Mike Burger wrote:
>> On 2022-06-20 05:03, Pete Biggs wrote:
>> > On Mon, 2022-06-20 at 09:31 +0100, david allan finch wrote:
>> > > Is there an rpm of GCC 12 (or at least higher than 9) available to
>> > > download and install, or is it a case of downloading and build from
>> > > the
>> > > source yourself?
>> > >
>> > That's what Software Collections is for.
>> >
>> >   https://www.softwarecollections.org/
>> >
>> > Specifically you need one of the devtoolset collections - it goes up to
>> > 11 which, unsurprisingly, provides gcc-11 on CentOS 7. So:
>> >
>> > # yum install centos-release-scl
>> > # yum install devtoolset-11
>> > # scl enable devtoolset-11 bash
>> >
>> 
>> Pete,
>> 
>> As David was asking about obtaining and installing GCC 12, wouldn't
>> installing GCC 11, as noted above,  leave him downlevel?
>> 
> 
> He said "or at least higher than 9".
> 
> P.

(Note to self...reading is fundamental. D'oh!)

-- 
Mike Burger
http://www.bubbanfriends.org

"It's always suicide-mission this, save-the-planet that. No one ever 
just stops by to say 'hi' anymore." --Colonel Jack O'Neill, SG1