Welcome to Amin Mahmoudi official website.
Last Blog Posts :
How to connect PHP to Microsoft SQL Server Our Private World of Warcraft Fun 3.3.5a Server Started Install GCC7 in CentOS & Ubuntu Use Telegram bot to get notifications about your MasterkinG account Unveiling new version of MasterkinG32 website 
Main Menu
User Panel

Install GCC7 in CentOS & Ubuntu

Install GCC7 in CentOS & Ubuntu
Rate 5/5 Based on 1 Reviews

Hello dear, If you wanna install GCC 7 & G++7 In Ubuntu you have 2 way to install,

1) you can download & compile GCC source

2) you can install with toolchain

Open your Linux Terminal & enter this commands.

apt-get update && apt-get install -y software-properties-common && add-apt-repository ppa:ubuntu-toolchain-r/test && apt-get update && apt-get install -y gcc-7 g++-7 && update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 60 && update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 60

then you can enter

gcc --version

to see your GCC version.

GCC 7 On Ubuntu 16, Ubuntu 17

 


If you wanna Install GCC & G++ In CentOS 6.9 or etc you can use these commands

yum install centos-release-scl-rh
yum install devtoolset-7
scl enable devtoolset-7 bash

then you can check your GCC version

gcc --version

 

Install GCC 7 in CentoS 6.9,6.8, CenOS 6.7, CentOS 6.5, CentoS 7

 

Send Comment