Linux operating system above the development program, the light with GCC is not possible it also needs a build-essential package function is to provide the compiler must be a package of the list of information that the compiler has the package it does not know where the header file is to know where the library function will download the dependent software The package finally makes up a development environment of course build-essential package installation requires a dependency package some of you don't.
Install Build essentials on Ubuntu
Apt-get install-y build-essential
The above command installs the package:
- The following additional installation packages will be installed:
-
Binutils cpp cpp-4.8 dpkg-dev fakeroot g++ g++-4.8 gcc gcc-4.8
-
Libalgorithm-diff-perl Libalgorithm-diff-xs-perl Libalgorithm-merge-perl
-
Libasan0 libatomic1 libc-dev-bin Libc6-dev libcloog-isl4 Libdpkg-perl
-
Libfakeroot libfile-fcntllock-perl Libgcc-4.8-dev libgmp10 libgomp1 libisl10
-
LIBITM1 libmpc3 libmpfr4 libquadmath0 libstdc++-4.8-dev Libtimedate-perl
-
Libtsan0 Linux-libc-dev make manpages manpages-dev patch Xz-utils
- Recommended Packages to install:
-
Binutils-doc Cpp-doc gcc-4.8-locales debian-keyring g++-multilib
-
G++-4.8-multilib Gcc-4.8-doc libstdc++6-4.8-dbg gcc-multilib autoconf
-
automake1.9 Libtool Flex Bison gdb Gcc-doc gcc-4.8-multilib libgcc1-dbg
-
libgomp1-dbg libitm1-dbg libatomic1-dbg libasan0-dbg libtsan0-dbg
-
libquadmath0-dbg glibc-doc Libstdc++-4.8-doc Make-doc man-browser Ed
-
Diffutils-doc
- To install a new package:
-
Binutils build-essential cpp cpp-4.8 dpkg-dev fakeroot g++ g++-4.8 gcc
-
gcc-4.8 Libalgorithm-diff-perl Libalgorithm-diff-xs-perl
-
Libalgorithm-merge-perl libasan0 Libatomic1 Libc-dev-bin Libc6-dev
-
LIBCLOOG-ISL4 Libdpkg-perl libfakeroot Libfile-fcntllock-perl Libgcc-4.8-dev
-
LIBGMP10 libgomp1 libisl10 libitm1 libmpc3 libmpfr4 libquadmath0
-
Libstdc++-4.8-dev Libtimedate-perl libtsan0 Linux-libc-dev make Manpages
-
Manpages-dev Patch Xz-utils
Installing Build essentials on CentOS
Yum Groupinstall "Development Tools"
- To install the developer tools:
-
Autoconf
-
Automake
-
Bison
-
Byacc
-
Cscope
-
Ctags
-
Diffstat
-
Doxygen
-
Elfutils
-
Flex
-
Gcc
-
Gcc-c++
-
Gcc-gfortran
-
GetText
-
Git
-
Indent
-
Intltool
-
Libtool
-
Make
-
Patch
-
Patchutils
-
Rcs
-
Redhat-rpm-config
-
Rpm-build
-
Rpm-sign
-
Subversion
-
Swig
-
Systemtap
- To install a dependency package:
- Apr
- Apr-util
- Avahi-libs
- Boost-system
- Boost-thread
- Bzip2
- Cpp
- Dwz
- Dyninst
- Emacs-filesystem
- Fipscheck
- Fipscheck-lib
- Gdb
- Gettext-common-devel
- Gettext-devel
- Gettext-libs
- Glibc-devel
- Glibc-headers
- GnuTLS
- Kernel-devel
-
Kernel-headers
-
Libdwarf
- Libedit
-
Libgfortran
-
Libgnome-keyring
-
Libmodman
-
Libmpc
-
Libproxy
-
Libquadmath
-
Libquadmath-devel
-
Libstdc++-devel
-
M4
-
Mokutil
-
Mpfr
-
Neon
-
Nettle
-
OpenSSH
-
Openssh-clients
-
Pakchois
-
Perl
-
Perl-carp
-
Perl-data-dumper
-
Perl-encode
-
Perl-error
-
Perl-exporter
-
Perl-file-path
-
Perl-file-temp
-
Perl-filter
-
Perl-getopt-long
-
Perl-git
-
Perl-http-tiny
-
Perl-pathtools
-
Perl-pod-escapes
-
Perl-pod-perldoc
-
Perl-pod-simple
-
Perl-pod-usage
-
Perl-scalar-list-utils
-
Perl-socket
-
Perl-storable
-
Perl-termreadkey
-
Perl-test-harness
-
Perl-text-parsewords
-
Perl-thread-queue
-
Perl-time-hires
-
Perl-time-local
-
Perl-xml-parser
-
Perl-constant
-
Perl-libs
-
Perl-macros
-
Perl-parent
-
Perl-podlators
-
Perl-srpm-macros
-
Perl-threads
-
Perl-threads-shared
-
Rsync
-
Subversion-libs
-
Systemtap-client
-
Systemtap-devel
-
Systemtap-runtime
-
Trousers
-
Unzip
-
Zip
-
Base
To the top of this profile, build Essentials installs to CentOS:
Yum install-y gcc g++ kernel-devel
Install build Essentials on CentOS 7 and Ubuntu 14.03