Download: http://ftp.gnu.org/gnu/gcc/gcc-4.5.1/gcc-4.5.1.tar.bz2Browse: HTTP://FTP.GNU.ORG/GNU/GCC/GCC-4.5.1/View Changes:http://gcc.gnu.org/gcc-4.5/changes.htmNow many programmers are using G
-packages ages = c, c ++ -- disable-multilib
6. Compile:
Make-j4: Wait for about 40 minutes. PS: it is best not to do anything in the compilation process. The CPU is fully loaded throughout the process. If it is inexplicably terminated, there will be a lot of troubles in the future.
7. installation:
After compilation, we can execute the installation:
Make install8. check version:
Gcc -- versionOr gcc-vroot
GCC is a GNU compiler suite that needs to be installed on a network with simple installation, but no network can install GCC? In fact, it is possible, the following small series to introduce the Linux without network installation GCC technology, together to understand the next bar.
Installing GCC in the event of a net
Recently tried a variety of fedora, Ubuntu, mint, Debian, openSUSE and many other Linux distributions, compared to CentOS after the feeling is familiar with the previous CentOS, compare habits. CentOS now the latest version of CentOS7, due to the laboratory computer is older, on this 64-bit system a bit card, so can only back and beg the second, with this CentOS6
the gcc tool, and displays the version numbers of the Preprocessor and compiler.
-Wall: generates warnings of all levels
-W: Disable all warnings. This option is not recommended.
-Idir: add the dir directory to the header file search directory list. First, find the contained header file in the dir directory.
-Ldir: add the dir directory to the directory list of the imported files, and search for the library files in the dir directory first.
-The li
How to install GCC without a network
To install gcc on a network, you only need one command: yum install gcc. How can you install gcc without a network? Although there is no network, I think you should have a CD or an ISO image. If there is no such image, goodbye.
If you have these, we only need to use the installation
installation, select the custom installation package, select GCC, or select full installation;Iii. Install GCC (. rpm) in binary format)The following describes how to install gcc in the binary format (it looks troublesome)Determine in advance to install rhel9-compliant rpm, and find the following URL:Http://mirrors.jtlnet.com/
Because c ++ doesn't want to use boost directly, some of the latest C ++ standards have already been merged, so it's better to use C ++ directly.
Therefore, you need to compile GCC 4.9. The latest version is 4.9.1.
I have already installed a lot of dependencies through yum. I found that ISL and cloog cannot be installed through yum, downloaded and installed. When GCC and configure are used, I found that c
1. Download the latest GCC source package 2.解压缩tar -xfgcc-4.9.1.tar.gz3.cdgcc-4.9.14. Run the Download_prerequisites script, ./contrib/download_prerequisites This script will automatically help you to download the required dependent files and libraries5. Create the output directory and place all the intermediate files in the directory. cd gcc_temp6. Run 7.make make install ===========================================================================
Installation Method
Automatic Installation
Yum Install gcc (this is)
yum install gcc-c++ (this is the C + + compiler)
Yum install
However, this does not install the specified version to install only the version of the system disk, the following CentOS 6x64 install GCC 4.8.4 For example, Custom insta
Centos6_64 GCC-C ++ Platform ConstructionAutomatic Installation
Yum install gcc (this is) yum install gcc-c ++ (this is the C ++ compiler) yum install cmake
However, in this case, you cannot install the specified version only on the system disk. The following uses centos 6X64 to install
The C++11 standard was unanimously adopted in August 2011, the first major revision of the C + + language since 1998, and the improvement and expansion of the C + + language. Subsequently, each compiler manufacturer implements or partially implements the features in C + +.
To see how much support the compiler has for c++11, see the article:
This article mainly describes how to upgrade GCC to support c++11 under Linux systems. For now,
Centos5. 8rpm install gcc1. download the rpm package required for gcc installation. First, check the installed linux version, and then download the rpm package from the centos website. Bash Code # lsb_release-awww.2cto.com I installed centOSrelea... centos 5.8 rpm install gcc 1. download the rpm package required to ins
=${LIBRARY_PATH}:${APPHOME}/lib . This configuration file is then loaded into the CENTOS environment variable, so that the GCC compiler does not have to add -L parameters to generate the target file commutcp.4 SummaryAbout LIBRARY_PATH LD_LIBRARY_PATH the relationship, and here to summarize their own.4.1 Dynamic Library search path for Linux gcc when compiling li
To install GCC on a network, you only need one command: Yum install GCC. How can you install GCC without a network? Although there is no network, I think you should have a CD or ISO image. If there is no such image, then.
If you have these, we only need to use the installation CD or ISO image to mount a local Yum source and use this to install
Compile and install GCC on Linux-general Linux technology-Linux programming and kernel information. The following is a detailed description. Author: A. TNG
Email: jiyucn@163.com
Reference: Installation document of GCC
Time: 4/13/2008
Preface
Recently, a development environment has been built, which has special requirements on GCC. The
The company requires that some tests be carried out under the CentOS6.5 system. Since some of the new features of c++11 are used in the written test program, and the GCC version installed in CentOS6.5 is 4.4.7, does not support c++11, so you need to upgrade GCC, note the upgrade process, this upgrade process requires the use of root permissions, Therefore, the installation needs to switch to the root user.1
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.