Install the build-essential Package for Ubuntu

Source: Internet
Author: User
By default, Ubuntu does not provide a C/C ++ compiling environment. Therefore, you need to install it manually. If it is troublesome to install gcc and g ++ separately, we are fortunate to have provided a build-essential software package to compile the Ubuntu kernel. View the dependencies of the software package. You can see the following: $ apt-cachedependsbuild-essential build-essential | dependency: libc6

By default, Ubuntu does not provide a C/C ++ compiling environment. Therefore, you need to install it manually.

If it is troublesome to install gcc and g ++ separately, we are fortunate to have provided a build-essential software package to compile the Ubuntu kernel.

View the dependency of the software package. You can see the following:

$ Apt-cache depends build-essential

Build-essential

| Dependency: libc6-dev

Dependency:

Libc6-dev

Dependency: gcc

Dependency: g ++

Dependency: make

Dependency: dpkg-dev

That is to say, if this software package is installed, all the software packages required to compile c/c ++ will also be installed. Therefore, to compile the c/c ++ program in Ubuntu, you only need to install the software package.

The installation method is as follows:

$ Sudo apt-get install build-essential

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.