devtoolset 7 will install gcc 7 in a directory in /opt, which will not conflict or interfere with existing system packages. When you want to use gcc 7, you’d start a new shell with a modified path and other environment variables using:
scl enable devtoolset-7 bash
$ sudo yum install devtoolset-7
Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile
* base: mirror.vcu.edu
* epel: mirror.siena.edu
* extras: mirror.vcu.edu
* updates: mirror.vcu.edu No package devtoolset-7 available. Error: Nothing to do
Ooops! for to:
$ sudo yum install CentOS-release-scl-rh
Ad-free, non-tracking blog post on using SCL packages:
7 thoughts on - Need To Update Gcc To Version >=6 On CentOS 7 ?
The easiest way is going to be to use software collections:
https://www.softwarecollections.org/en/scls/rhscl/devtoolset-7/
devtoolset 7 will install gcc 7 in a directory in /opt, which will not conflict or interfere with existing system packages. When you want to use gcc 7, you’d start a new shell with a modified path and other environment variables using:
scl enable devtoolset-7 bash
$ sudo yum install devtoolset-7
Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile
* base: mirror.vcu.edu
* epel: mirror.siena.edu
* extras: mirror.vcu.edu
* updates: mirror.vcu.edu No package devtoolset-7 available. Error: Nothing to do
Ooops! for to:
$ sudo yum install CentOS-release-scl-rh
Ad-free, non-tracking blog post on using SCL packages:
https://www.madboa.com/blog/2016/08/29/scl-intro/
You’ve skipped step #1: sudo yum install CentOS-release-scl
Nope. Did that too.
I’m up and running.
On Wed, Sep 11, 2019 at 13:06 Gordon Messmer wrot
CentOS mailing list CentOS@CentOS.org https://lists.CentOS.org/mailman/listinfo/CentOS
I don’t suppose there’s a collection that contains a version 7 of the arm cross compiler: arm-linux-gnu-gcc ?