Linux Ubuntu 14.04中安装GCC 和 G++ C++ 开发环境
在Ubuntu环境下,打开终端Ctrl+Alt+T
1.先安装 :
sudo apt-get install build-essential
2.看版本:
gcc --version
g++ --version
3.若安装:
sudo apt-get install gcc-4.8.4
sudo apt-get install g+±4.8.4
4.看版本:
gcc --version
gcc (Ubuntu 4.8.4-2ubuntu1~14.04.4) 4.8.4
Copyright © 2013 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.
g++ --version
g++ (Ubuntu 4.8.4-2ubuntu1~14.04.4) 4.8.4
Copyright © 2013 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.
安装完成