The records are as follows:
1. Download gcc suitable version from the website, http://gcc.gnu.org, Since it does not support 4.5 and above, I chose the highest version of the 4.4.6 4.5, gcc-4.4.6.tar.gz and gcc-4.4.6.tar.bz2 two kinds of bags, according to personal preference of the first;
2. Unpack #tar ZXFV gcc-4.4.6.tar.gz
3. Into the decompression directory, my is ~/local/gcc-4.4.6, there is a call configure executable file, configured as follows: #./configure--prefix=/usr/bin/gcc-4.4.6--enable-language =c,c++,java (where/usr/bin/gcc-4.4.6 is the directory to be installed for GCC, and the following--enable-language=c,c++,java is set up to install the language to compile) Note: The mark of configure success is, Screen display: Successfully generated makefile file, your directory will also have a makefile, so as to proceed to the next
4. #make This is the longest step, long to I can't wait to go back to bed last night ... Note: Make may also appear in error, general also need to configure the environment or lack of files, directly need what to install what is OK
5. #make Install
6. After the end, establish a gcc4.4.6 version of the connection, command: #ln-S/USR/BIN/GCC-4.4.6/BIN/GCC/USR/BIN/GCC View the current version of GCC: #gcc--version
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.