How to install gcc-toolset-11 on rocky 9.4?

I need to install it for autodesk maya2025 devkit, which requires

RHEL or Rocky Linux 8.6 or higher, using DTS-11 with gcc 11.2.1

But not sure how to install it, dnf search only shows gcc-toolset 12 13 14

What is the easiest way to install other than build from source? Can I add rocky 8 app stream and install from there ?

Hello. Welcome to the community!

There’s no gcc-toolset-11 on Rocky Linux 9. The default gcc package is already version 11.

[root@xmpp01 ~]# dnf info gcc
Last metadata expiration check: 2:31:49 ago on Mon 30 Sep 2024 05:08:50 PM MST.
Available Packages
Name         : gcc
Version      : 11.4.1
Release      : 3.el9
Architecture : x86_64
Size         : 32 M
Source       : gcc-11.4.1-3.el9.src.rpm
Repository   : appstream
Summary      : Various compilers (C, C++, Objective-C, ...)
URL          : http://gcc.gnu.org
License      : GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
Description  : The gcc package contains the GNU Compiler Collection version 11.
             : You'll need this package in order to compile C code.

If all you need is gcc 11, then you can install it as so.

% dnf install gcc gcc-c++
2 Likes

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.