Installing CentOS7 GCC 6.x

Installing CentOS7 GCC 6.x

Installing GCC on CentOS 7 will install version 4.8.5. In some cases, you may need to install a higher version.
The following is how to install GCC, G ++ 6.x version.
$ sudo yum install centos-release-scl
$ sudo yum install devtoolset-6
After installation, enable gcc 6 with the command below. The command below should be run every time you use gcc 6.
$ scl enable devtoolset-6 bash
You can check the installed version through the GCC command.
[root@localhost ~]# gcc --version
gcc (GCC) 6.3.1 20170216 (Red Hat 6.3.1-3)
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[root@localhost ~]# g++ --version
g++ (GCC) 6.3.1 20170216 (Red Hat 6.3.1-3)
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[root@localhost ~]#

Comments

Popular posts from this blog

Enabling Com Port on Hyper-V 2nd Generation VM / Windbg

DLL Injection using CreateRemoteThread in Windows 10

Using Overlapped I / O in DeviceIoControl