Troubleshooting of Python 2.7.5 installation in CentOS 5.8 (64-bit)
CentOS5.8 (64-bit) with Python2.7.5
An error occurred while executing./configure,
Configure: error: no acceptable C compiler found in $ PATH
Check that the appropriate compiler is not installed.
Sudo yum install gcc-c ++
(When sudo yum install gcc-c ++ is used, gcc and other dependent packages are automatically installed/upgraded .)
Re-Execute
./Configure
Make
Make install
Successful!
Note the similarities and differences between gcc and g ++/gcc-c ++:
Gcc is short for GNU Compiler Collection and can compile C and C ++ source code, it is a compiler developed by GNU for C, C ++, and many other languages (C can only be compiled at the earliest, and then quickly evolved into a set of compiling multiple languages, such as Fortran, Pascal, Objective-C, Java, Ada, and Go .)
In the C ++ source code compilation stage, gcc can only compile C ++ source files, but cannot automatically link to the library used by C ++ programs (the compilation process is divided into two phases: Compilation and linking, the source program file is compiled into the target file. Multiple Target files, together with the library, are linked into a final executable file, which is loaded into the memory for running ). Therefore, the g ++ command is usually used to compile and connect the C ++ program. The program automatically calls gcc for compilation.
G ++ can also compile C source code, but regards it as C ++ source code. Suffix. c source file. gcc regards it as a C program, while g ++ regards it as a c ++ program; suffix. cpp, both of which are considered as c ++ programs. Note that although c ++ is a superset of c, their syntax requirements are different.
Check that the appropriate compiler is not installed.
Sudo yum install gcc-c ++
(When sudo yum install gcc-c ++ is used, gcc and other dependent packages are automatically installed/upgraded .)
Re-Execute
./Configure
Make
Make install
Successful!
Note the similarities and differences between gcc and g ++/gcc-c ++:
Gcc is short for GNU Compiler Collection and can compile C and C ++ source code, it is a compiler developed by GNU for C, C ++, and many other languages (C can only be compiled at the earliest, and then quickly evolved into a set of compiling multiple languages, such as Fortran, Pascal, Objective-C, Java, Ada, and Go .)
In the C ++ source code compilation stage, gcc can only compile C ++ source files, but cannot automatically link to the library used by C ++ programs (the compilation process is divided into two phases: Compilation and linking, the source program file is compiled into the target file. Multiple Target files, together with the library, are linked into a final executable file, which is loaded into the memory for running ). Therefore, the g ++ command is usually used to compile and connect the C ++ program. The program automatically calls gcc for compilation.
G ++ can also compile C source code, but regards it as C ++ source code. Suffix. c source file. gcc regards it as a C program, while g ++ regards it as a c ++ program; suffix. cpp, both of which are considered as c ++ programs. Note that although c ++ is a superset of c, their syntax requirements are different.
-------------------------------------- Split line --------------------------------------
Install Python3.4 on CentOS source code
Python core programming version 2. (Wesley J. Chun). [Chinese version of hd pdf]
Python development technology details. (Zhou Wei, Zong Jie). [hd PDF scan version + book guide video + code]
Obtain Linux information using a Python script
Build a desktop algorithm transaction research environment using Python in Ubuntu
A Brief History of Python Development
Python details: click here
Python: click here
This article permanently updates the link address: