🌐
Upenn
hpcwiki.pmacs.upenn.edu › index.php › HPC:Developer_Tool_Set
HPC:Developer Tool Set - HPC wiki
devtoolset-2 is a set of packages that includes newer versions of gcc, gdb, and other standard libraries.
🌐
Linux @ CERN
linux.web.cern.ch › devtoolset
Developer Toolset - Linux @ CERN
$ scl enable devtoolset-2 bash $ gcc --version gcc (GCC) 4.8.1 20130715 (Red Hat 4.8.1-4) Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions.
🌐
Centos
people.centos.org › tru › devtools-2 › readme
Centos
http://people.centos.org/tru/devtools-2/readme 2014/03/09: C6 i386 and C5 i386 and x86_64 added + devtoolset-2-binutils 2014/03/07: only the C6 x86_64 is built at this time (unsigned) you probably want: wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-2.repo yum install devtoolset-2-gcc devtoolset-2-binutils yum install devtoolset-2-gcc-gfortran known issue: 0) unsigned packages 1) CentOS-6 devtoolset-2 needs devtoolset-2-ide which contains the whole eclipse stack but does not build yet 2) CentOS-6 all the maven related file are not built either main changes from devtools-1.1: - /opt/centos is no longer used - /opt/rh is now used as upstream (as SL version)
🌐
Stack Overflow
stackoverflow.com › questions › 44449105 › upgrade-gcc-c-devtoolset-2-on-redhat-6-8
upgrade GCC C++ devtoolset 2 on Redhat 6.8 - Stack Overflow
June 9, 2017 - --> Processing Dependency: xml-commons-jaxp-1.3-apis for package: devtoolset-2-objectweb-asm-3.3.1-6.el6.noarch ---> Package devtoolset-2-systemtap-runtime.x86_64 0:2.1-8.el6 will be installed --> Finished Dependency Resolution Error: Package: devtoolset-2-ant-apache-xalan2-1.8.4-12.el6.noarch (slc6-devtoolset) Requires: regexp Error: Package: devtoolset-2-axis-1.4-23.el6.noarch (slc6-devtoolset) Requires: jakarta-commons-httpclient >= 1:3.0 Error: Package: devtoolset-2-junit-4.11-6.el6.1.noarch (slc6-devtoolset) Requires: hamcrest Error: Package: 1:devtoolset-2-eclipse-platform-4.3.1-8.el6.x86_64 (slc6-devtoolset) Requires: xml-commons-apis Error: Package: devtoolset-2-eclipse-emf-xsd-sdk-2.9.1-2.el6.noarch (slc6-devtoolset)
🌐
LinuxQuestions.org
linuxquestions.org › questions › red-hat-31 › centos-developer-toolset-2-on-rhel-4175549845
[SOLVED] CentOS Developer Toolset 2 on RHEL
I'm a developer and my development platform through production is RHEL 5.11, which is distributed with GCC 4.1.2. I've wanted to upgrade to a C++11
🌐
GitHub
gist.github.com › stephenturner › e3bc5cfacc2dc67eca8b
Installing gcc 4.8 and Linuxbrew on CentOS 6 · GitHub
$ gfortran --version GNU Fortran (GCC) 4.8.2 20140120 (Red Hat 4.8.2-15) ... Optional: Permanently enable scl toolchain by putting this in your .bashrc (warning: don't try to use the scl enable devtoolset-2 bash command from before in your .bashrc.
🌐
The Linux Cluster
thelinuxcluster.com › category › compilers › devtoolset
Devtoolset – The Linux Cluster
November 17, 2014 - Do take a look at Linux @ CERN for the documentation on how to use yum to install devtoolset which contain the following packages. The latest version for CentOS 6 is devtoolset-2.1.
🌐
Devtoolset
devtoolset.net
DevToolset: Open-Source Database-free Developer Tools Navigator
A hackable text editor for the 21st century, built by GitHub, offering a range of plugins for customization and development.
🌐
Red Hat
docs.redhat.com › en › documentation › red_hat_developer_toolset › 9 › html › 9.0_release_notes › dts9.0_release
Chapter 2. Red Hat Developer Toolset 9.0 Release | 9.0 Release Notes | Red Hat Developer Toolset | 9 | Red Hat Documentation
Chapter 2. Red Hat Developer Toolset 9.0 Release · Red Hat Developer Toolset 9.0 provides the following components: ... For details, see the Red Hat Developer Toolset Components table in the Red Hat Developer Toolset User Guide. All components in Red Hat Developer Toolset 9.0 are distributed as new packages with the devtoolset-9- prefix and only for Red Hat Enterprise Linux 7.
Find elsewhere
🌐
Red Hat
docs.redhat.com › en › documentation › red_hat_developer_toolset › 12 › html › user_guide › chap-red_hat_developer_toolset
Chapter 1. Red Hat Developer Toolset | User Guide | Red Hat Developer Toolset | 12 | Red Hat Documentation
To install all components that are included in Red Hat Developer Toolset, install the devtoolset-12 package: ... This installs all development, debugging, and performance monitoring tools, and other dependent packages to the system. Alternatively, you can choose to install only a selected package ...
🌐
Abysm
blog.abysm.org › 2016 › 03 › installing-developer-toolset-rhel-based-distributions
Installing Developer Toolset on RHEL-based Distributions · Kuan-Yi Li's Blog
March 25, 2016 - yum install "http://ftp.scientificlinux.org/linux/scientific/6/external_products/softwarecollections/yum-conf-softwarecollections-2.0-1.el6.noarch.rpm" Install the version(s) of your choice. Yes, they can co-exist. yum install devtoolset-10 · yum install devtoolset-9 ·
Top answer
1 of 1
1

This issue in this case is RedHat subscription channels. Though the subscription and software are free (provided you have an active subscription already), for some reason you have to make a 'special request' to RedHat as per:

https://access.redhat.com/solutions/472793

You can automate this by visiting:

https://www.redhat.com/wapps/try/RHSCL

(when logged into the support portal). This should automatically be approved after which you can attach a new subscription. Identify the pool id using:

subscription-manager list --available --all

To find the pool id:

 Subscription Name:   Software Collections and Developer Toolset
 Provides:            Red Hat Developer Tools (for RHEL Server)
                      Red Hat Developer Tools Beta (for RHEL Workstation)
                      Red Hat Software Collections Beta (for RHEL Server)
                      Red Hat Software Collections Beta (for RHEL Workstation)
                      Red Hat Software Collections (for RHEL Server)
                      Red Hat Developer Tools Beta (for RHEL Server)
                      Red Hat Developer Toolset (for RHEL Workstation)
                      Red Hat Software Collections Beta (for RHEL Client)
                      Red Hat Software Collections (for RHEL Workstation)
                      Red Hat Developer Toolset (for RHEL Server)
                      Red Hat Developer Tools (for RHEL Workstation)
                      Red Hat Software Collections (for RHEL Client) 
SKU:                 foobar 
Contract:            1234 Pool ID: XXXXXXXXXX

Then attach this and enable the newly available repos:

>subscription-manager attach --pool=XXXXXXXXXXXXXXXXXXXX
Successfully attached a subscription for: Software Collections and Developer Toolset
>subscription-manager repos --enable rhel-workstation-rhscl-7-rpms
Repository 'rhel-workstation-rhscl-7-rpms' is enabled for this system.
>subscription-manager repos --enable rhel-7-workstation-devtools-rpms
Repository 'rhel-7-workstation-devtools-rpms' is enabled for this system.

You can now install freely:

>yum update -y 
>yum install -y devtoolset-7-gcc-c++

Quite why they make you jump through so many hoops is explained by RedHat as follows:

-If you have a 2013 RHEL SKU with Standard or Premium service level, there should be no action on your part, and your subscription should have full access to RHSCL.

-If you have a 2010 or older RHEL SKU with Standard or Premium service level, you should contact Red Hat Customer Service to request the RHSCL SKU (and all related content) added to your account.

NOTE: Developer Toolset is now included as part of Red Hat Software Collections. This change was made on May 29, 2014.

As you had Red Hat Enterprise Linux Workstation, Standard subscription which is older RHEL SKU with Standard service level, you had to initiate a special request for it

Top answer
1 of 5
93

In your ~/.bashrc or ~/.bash_profile Simply source the "enable" script provided with the devtoolset. For example, with the Devtoolset 2, the command is:

source /opt/rh/devtoolset-2/enable

or

source scl_source enable devtoolset-2

Lot more efficient: no forkbomb, no tricky shell

2 of 5
17

An alternative of source /opt/rh/devtoolset-4/enable is

source scl_source enable devtoolset-4

The above shell script scl_source is more elegant than using a hard coded path (may be different on another machine). However scl_source does less because /opt/rh/devtoolset-4/enable uses scl_source and other stuff.

To use scl_source you may have to upgrade package scl-utils

yum update scl-utils  # old scl-utils versions miss scl_source

Quick copy-paste

echo 'source scl_source enable devtoolset-4' >> ~/.bashrc
    # Do not forget to change the version ↑

Source code for curious people

An example of scl_source source code:
https://gist.github.com/bkabrda/6435016

The scl_source installed on my Red Hat 7.1

#!/bin/bash

_scl_source_help="Usage: source scl_source <action> [<collection> ...]

Don't use this script outside of SCL scriptlets!

Options:
    -h, --help    display this help and exit"

if [ $# -eq 0 -o $1 = "-h" -o $1 = "--help" ]; then
    echo "$_scl_source_help"
    return 0
fi


if [ -z "$_recursion" ]; then
    _recursion="false"
fi
if [ -z "$_scl_scriptlet_name" ]; then
    # The only allowed action in the case of recursion is the same
    # as was the original
    _scl_scriptlet_name=$1
fi
shift 1

if [ -z "$_scl_dir" ]; then
    # No need to re-define the directory twice
    _scl_dir=/etc/scl/conf
    if [ ! -e $_scl_dir ]; then
        _scl_dir=/etc/scl/prefixes
    fi
fi

for arg in "$@"; do
    _scl_prefix_file=$_scl_dir/$arg
    _scl_prefix=`cat $_scl_prefix_file 2> /dev/null`
    if [ $? -ne 0 ]; then
        echo "Can't read $_scl_prefix_file, $arg is probably not installed."
        return 1
    fi

    # First check if the collection is already in the list
    # of collections to be enabled
    for scl in ${_scls[@]}; do
        if [ $arg == $scl ]; then
            continue 2
        fi
    done

    # Now check if the collection isn't already enabled
    /usr/bin/scl_enabled $arg > /dev/null 2> /dev/null
    if [ $? -ne 0 ]; then
        _scls+=($arg)
        _scl_prefixes+=($_scl_prefix)
    fi;
done

if [ $_recursion == "false" ]; then
    _i=0
    _recursion="true"
    while [ $_i -lt ${#_scls[@]} ]; do
        _scl_scriptlet_path="${_scl_prefixes[$_i]}/${_scls[$_i]}/${_scl_scriptlet_name}"
        source "$_scl_scriptlet_path"
        if [ $? -ne 0 ]; then
            echo "Can't source $_scl_scriptlet_name, skipping."
        else
            export X_SCLS="${_scls[$_i]} $X_SCLS"
        fi;
        _i=$(($_i+1))
    done
    _scls=()
    _scl_prefixes=()
    _scl_scriptlet_name=""
    _recursion="false"
fi
🌐
GitHub
github.com › sclorg › devtoolset-container
GitHub - sclorg/devtoolset-container: Devtoolset container images based on Red Hat Software Collections, that provide a platform for building and running C and C++ applications. Users can choose between Red Hat Enterprise Linux, Fedora, and CentOS based images.
Devtoolset container images based on Red Hat Software Collections, that provide a platform for building and running C and C++ applications. Users can choose between Red Hat Enterprise Linux, Fedora, and CentOS based images.
Starred by 45 users
Forked by 29 users
Languages   Shell 68.3% | Dockerfile 29.0% | Makefile 2.0% | C 0.7% | Shell 68.3% | Dockerfile 29.0% | Makefile 2.0% | C 0.7%
🌐
Red Hat
docs.redhat.com › en › documentation › red_hat_developer_toolset › 12 › html-single › user_guide › index
User Guide | Red Hat Developer Toolset | 12 | Red Hat Documentation
To install all components that ... the devtoolset-12 package: ... This installs all development, debugging, and performance monitoring tools, and other dependent packages to the system. Alternatively, you can choose to install only a selected package group as described in Section 1.5.2, “Installing ...
🌐
Stack Overflow
stackoverflow.com › questions › tagged › devtoolset
Newest 'devtoolset' Questions - Page 2 - Stack Overflow
I'm running make -j2 in order to spawn only 2 processes in parallel. The internal Makefile is called with $(MAKE). However, it looks like ... ... The 'template' for the new project is MFC Dynamic Link Library. The problem seems to boil down to Visual Studio looking for the folder "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\... ... I have a bash script that executes the command scl enable devtoolset-8 'echo -e "%__ld $(which ld)\n%__nm $(which nm)\n%__objcopy $(which objcopy)\n%__objdump $(which objdump)\n%__strip $(which ...
🌐
Oracle Linux
yum.oracle.com › repo › OracleLinux › OL7 › SoftwareCollections › x86_64
Oracle Linux 7 (x86_64) Software Collection 3.0 | Oracle, Software. Hardware. Complete.
Oracle Linux with Oracle enterprise-class support is the best Linux operating system (OS) for your enterprise computing needs.