In order to install the miserable GCC under Ubuntu, the younger brother racked his brains for three days... When I figure out the dependency between the broken software m4, gmpmpfr, and NMPC, follow the strong Duniang's instructions, once installed,
preparatory work
Download and unzip the GCC source pack
Download a GCC source package from HTTP://FTP.GNU.ORG/GNU/GCC that you want to compile. For example, download is gcc-4.7.2.tar.bz2, and then use the input decompression command TAR-XVF
Compile and install GCC5.3.0 in Linux
System Environment: Amazon Linux AMI 2015.09.2 (HVM) --- Fedora 23 Server
1. Download The gcc-5.3.0installation package and put gcc-5.3.0.tar.gz in the/opt directory for decompression:
# Sudo su
# Mkdir/opt/& cd/
Install GCC 4.9.2 on Red Hat Enterprise Linux Server 6.5
Now many programmers are using GCC to better apply GCC. Currently, GCC can be used to compile programs in C/C ++, FORTRAN, JAVA, OBJC, ADA, and other languages. You can select the language to
Download the latest GCC4.6.2 from the GCC website
Http://gcc.gnu.org/
Domestic image address:Http://mirrors.ustc.edu.cn/gnu/gcc/
First, an error occurs during gcc Configuration:#./Configure -- prefix =/usr/local/gcc-4.6.2Configure: error: Building
Installing GCC under Ubuntu is a bit different from some other Linux systems.
First, installation method one:
sudo apt-get build-dep gccMethod Two:
sudo apt-get install build-essentialAfter installation, you can perform the following commands
Now many programmers are using GCC to better apply GCC. Currently, GCC can be used to compile programs in C/C ++, FORTRAN, JAVA, OBJC, ADA, and other languages. You can select the language to install. This article describes how to install GCC in
Solemnly declare: This article is written by the author based on my personal understanding. errors are inevitable. Please be prepared!
You can reprint, modify, and indicate the source when reprinting!
System Environment
Operating System: Ubuntu 10.04
For Linux small white, only need to know how to install, as for why wait for the study of Linux again. Knowledge is not the disadvantage of the system Ah!First of all, the low-level version of GCC is preinstalled on Ubuntu, which can handle the
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.