Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

$ sudo yum install centos-release-scl
$ sudo yum install devtoolset-6
$ scl enable devtoolset-6  'gcc --version | head -1'
gcc (GCC) 6.2.1 20160916 (Red Hat 6.2.1-3)

 

How to use the Software Collections version of a runtime program (eg, perl, python) from a script:

 

#!/usr/bin/scl enable rh-perl524 -- perl
print "$^V\n";

The output of that script shows the version of perl found and used is perl 5.24 from SCL:
ksa@cdlogin3 $ scl --list | grep perl
rh-perl524
ksa@cdlogin3 $
ksa@cdlogin3 $ cat ~ksa/public/perl.scl.example.pl
#!/usr/bin/scl enable rh-perl524 -- perl
print "$^V\n";
ksa@cdlogin3 $
ksa@cdlogin3 $ ~ksa/public/perl.scl.example.pl
v5.24.0

 

The Red Hat Developer Toolset (DTS) is intended to give developers access to updated compilers and tools for C and C++ development.

...