Installing the GCC compiler under UbuntuLinux8.04

Source: Internet
Author: User
I want to play UbuntuLinux8.04. My machine is HP6515b and has excellent compatibility with Ubuntu8.04. So I chose to install the system, but there are very few software in it and I need to install it myself, the first solution is GCC. Otherwise, it is inconvenient to install many software. To put it bluntly, installing GCC in Ubuntu is a little different from other Linux systems. Method 1: This method is super simple: sudoapt-getbuild-depgcc. Just use the above command.

If you want to use Ubuntu Linux 8.04, your computer is HP 6515b, which has excellent compatibility with Ubuntu 8.04. Therefore, I chose to install the system, but there are very few software in it and I need to install it myself, the first solution is GCC. Otherwise, it is inconvenient to install many software.

To put it bluntly, installing GCC in Ubuntu is a little different from other Linux systems.

Method 1:

This method is super simple:
Sudo apt-get build-dep gcc

The above command is enough.

Method 2:
Sudo apt-get install build-essential

It's still simple. A command can also be used.

After installation, You can execute
Gcc -- version

Command to view the version. The output is as follows:

Gcc (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
Copyright (C) 2007 Free Software Foundation, Inc.

This program is free software. Please refer to the source code copyright statement. This software does not have any warranty, including non-marketable and non-applicable warranties for a specific purpose.

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.