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.