Reprinted from: http://blog.sina.com.cn/s/blog_627b3f930101hnz8.htmlThanks a lot, Trig_yao .The CentOS6.5 comes with a gcc version of 4.4.7, some years, some new software to use the library did not, the latest GCC 4.8.2 has been released, so download the source code installed a try.1. First install the old GCC-related compilation tools[JavaScript]View Plaincopy
Yum install gcc gcc-c++ glibc-static -y
2. Download gcc 4.8.2 source code[HTML]View Plaincopy
wget ftp://gcc.gnu.
Compilation of gcc4.8 recently due to work needs
We recommend that you download the GCC source code package before preparation. In this way, the GCC is also downloaded when the preparation is complete.
Wget http://mirror.bjtu.edu.cn/gnu/gcc/gcc-4.8.0/gcc-4.8.0.tar.bz2
Before installing GCC, you need to install the other three dependency packages: GMP, MPRF, and MPC.
Wget http://mirror.bjtu.edu.cn/gnu/gmp/gmp-5.1.3.tar.gz
Http://mirror.bjtu.edu.cn/g
Never upgraded GCC before, with the system's default version of GCC, recently in the study for a long time no use of C, there will be upgraded GCC want to send, roughly as follows.
Environment: CENTOS-6.5-I386, the gcc-4.4.7 system must already have a compiler installed, because GCC is also required to compile the
First, GCC compilation requires three additional libraries to download and install them in the following order:1. GMP FTP://FTP.GNU.ORG/GNU/GMP2. MPFR FTP://FTP.GNU.ORG/GNU/MPFR3.
The operating system is redhat x86_64.
Prepare the gcc source code package
Gcc-4.6.0.tar.bz2Http://gcc.gnu.org orFtp://gcc.gnu.org
First, prepare three databases, all of which are high-precision big data computing databases.
Gmp-5.0.2 or higherHttp://gmplib.org/
Mpc-0.9 or higherHttp://www.multiprecision.org/index.php? Prog = nmpc
Mpfr-3.0.1 or higherHttp://www.mpfr.org
Decompress the downloaded package. If bz2 is used, use tar-xvjf. If gz is used,
-less data compression. 1.2.3 or later is required.
It turns out that the GCC version must be 4.2 or later.
Check whether the GCC gcc-V Report version of centos5.5 is GCC 4.1.2. No wonder the report is incorrect.
Install zlib Yum-y install zlib-devel first
Then, we upgraded GCC and downloaded a gcc4.5.1 file from the Internet.
An error occurs during GCC configuration: GCC configure: Error: Building GCC requires GMP 4.2 +, mpfr 2.3.1 + and MCM 0.8.0 +
Note: To install GCC, you need to install th
For Linux small white, only need to know how to install, as for why wait to learn Linux again ...
First of all, the general Ubuntu is pre-installed with a low-level version of GCC, can fully handle the brush OJ when the C+class+stl style, but the need to meet the C++11/14 standards, can only be upgraded to the latest version of the compiler.
Some of the necessary things to install GCC:
1.gcc5.4.0 source code compression package, download the address:
Mirror site: https://gcc.gnu.org/mirrors.html
) www.linuxidc.com @ server :~ $ Sudo su-cluster-c "mkdir ~ /Bin; export PATH = ~ /Bin: $ PATH"
MPICH settings
MPI applications are based on the following configuration files:
? ~ /. Mpd. conf
Note: This file starts with a and must work with chmod 600 to take effect.
This file contains a separate command line "secretword =" in your password.
"
(Replace
, The content must be consistent with all ~ The related content in/.
MARS_REQUEST information. MARS returns the MARS_MULTI information, this information contains the addresses of multicast servers or group members in the group. If the Group supports multicast servers, the request node establishes a connection with the server, send data to the server, which forwards the data to nodes in the group. In the multicast network solution, the request node establishes a point-to-multiple connection with the node in the group and sends data through the connection. 4. MPOA
of streaming media, but now there is no media services software support, so Ogg-based digital broadcasting is not possible. Ogg is currently supported by the situation is not good enough, both software and hardware, can not be compared with MP3.Features: You can use a smaller rate than the MP3 to achieve better sound quality than MP3, high-school low-bit rate has a good performance.Ideal for: better sound quality with smaller storage space (relative MP3)4-4 MPCAs with OGG, the
GMP (GNU multiple Precision Arithmetic library, the GNU High Precision Arithmetic database), is an open source high-precision computing library, which not only has ordinary integers, real numbers, floating-point numbers of high-precision operations, as well as random number generation, In particular, it provides a very complete computational interface in number theory, such as miller-rabin Prime number test algorithm, large prime number generation, Euclidean algorithm, inverse of elements in the
package directly (although this can be done ))
Currently, the gcc configuration phase cannot be started, because the system lacks a library (I have encountered an error before knowing) I would like to declare it first (I do not know what to do with c in the absence of the gmp mpfr MCM three libraries)
Specifically, there are three libraries of the source package on google download unzip and then install them in a directory through compilation (My gmp-5.0.1,
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 C+class+stl style of the brush OJ, but because the coldThe fake is very stubborn to see C++primer, so only the compiler to upgrade to the latest version to meet the C++11/14 standard.There are a few things you must do to install GCC :1. GCC5.3.0 source co
syntax error does not support else ifeqCxxflags = $ (cxxflags_debug)Libname: = $ (Libname_debug)ElseCxxflags? = $ (Cxxflags_default)endifendifYou can set the Build_type by setting the environment variable, such as: Export Build_type=debugYou can also set the installation directory for make install by using environment variables, such as: Export Prefix=/usr/local/libjsonRelated Small Knowledge:In the makefile file, PREFIX=/USR and prefix?=/usr are different, the former assignment cannot be overr
We are using Windows every day, but are you familiar with its system files? The so-called system files generally refers to the windows are closely related to the normal operation of the system can not be separated from the files. Most of these files are located under the System32 directory (X:\Windows\System32\) and the System file backup directory Dllcache (X:\Windows\System32\Dllcache\) ("X" is the partition where your XP system is located. They are generally in the form of DLL files, followed
configuration commands for the following two libraries are as follows:
/Usr/local/mpfr-2.3.1/configure -- prefix =/usr/local/mpfr-2.3.1 -- with-gmp =/usr/local/gmp-4.2
/Usr/local/mpc-0.8/configure -- prefix =/usr/local/mpc-0.8 -- with-gmp =/usr/local/gmp-4.2 -- with-mpfr =/usr/local/mpfr-2.3.1
After these three libraries are installed, you can officially start to install gcc.
3.As before, first create a t
Since the launch of shooter audio and video, more and more times have been drowned by Code and various bugs-fix. It takes too long to bury yourself in the field and often forgets where you are. So occasionally, we will share some experiences and experiences with you.
Media Playback tools mainly refer to video playback. Due to the huge compatibility and complicated algorithms, there are only a few systems that stand out from the architecture. Generally, there are three major architectures in the
Label: style blog http OS ar use SP file on Problem encountered by netizens and solved: An error occurred when mpich2 was running parallel programs on multiple nodes. I encountered the following problems when using mpich2:When I run a parallel program for calculating the circumference rate CPI. in C, I want to run this program on several specified nodes, such as host1, host2, and host3. So I write the names of these three nodes in the hostfile,The following is the running process:MPD Mpicc C
You need to know both the species and the virus.
A branchACCESS. CHM-Windows Help FileACCSTAT. EXE-auxiliary status indicatorADVAPI32.DLL-advanced Win32 application interfaceAHA154X. MPD-SCSI driverAM1500T. VXT-NIC DriverAM2100.DOS-NIC DriverAPPSTART. ANI-Animated CursorAPPS. HLP-Windows Help FileAUDIOCDC. HLP-"easy code decoder" Help FileAWARDPR32.EXE-added printer tools
B BranchBIGMEM. DRV-BIGMEM Virtual DeviceBILLADD. DLL-dynamic link library (MSW
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.