While the basic Ubuntu installation already includes the GNU C/C++ compiler, it's not nearly complete. Missing are important header files which fall under the
build-essential
package.To install
build-essential
:sudo apt-get install build-essential
build-essential
is actually just a list of additional packages that Ubuntu pulls down from the repositories, not the files themselves. In total, the packages come out to around 30MB.The files are:
libc6-dev | libc0.3-dev | libc6.1-dev | libc-dev
g++
, but we'll ignore it since libc6-dev
is used for non-C++ programs too.libc6-dev-sparc64
gcc (>= 4:4.1.1)
g++ (>= 4:4.1.1)
make
dpkg-dev
, but make does warrant its own dependency since debian/rules will need it even if dpkg-dev stopped depending on itdpkg-dev (>= 1.13.5)