LinuxMoz

Linux Stuff && Coffee

Ubuntu GCC Install Command

| Comments

Ubuntu GCC install tutorial showing you the required apt-get command required to install the GCC compiler on Ubuntu.

Ubuntu install GCC Command

Ubuntu GCC install from the Command line

To install GCC on Ubuntu use the following apt-get command with root privileges:

1
sudo apt-get install gcc

This should give you an output similar to the following:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
[email protected]:~# apt-get install gcc
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-3.2.0-20 linux-headers-3.2.0-20-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  binutils cpp cpp-4.6 gcc-4.6 libc-dev-bin libc6-dev libgomp1 libmpc2
  libmpfr4 libquadmath0 linux-libc-dev manpages-dev
Suggested packages:
  binutils-doc cpp-doc gcc-4.6-locales gcc-multilib make autoconf automake1.9
  libtool flex bison gdb gcc-doc gcc-4.6-multilib libmudflap0-4.6-dev
  gcc-4.6-doc libgcc1-dbg libgomp1-dbg libquadmath0-dbg libmudflap0-dbg
  binutils-gold glibc-doc
The following NEW packages will be installed
  binutils cpp cpp-4.6 gcc gcc-4.6 libc-dev-bin libc6-dev libgomp1 libmpc2
  libmpfr4 libquadmath0 linux-libc-dev manpages-dev
0 upgraded, 13 newly installed, 0 to remove and 0 not upgraded.
Need to get 21.0 MB of archives.
After this operation, 54.9 MB of additional disk space will be used.
Do you want to continue [Y/n]?

Comments