Troubleshooting of Python 2.7.5 installation in CentOS 5.8 (64-bit)

Source: Internet
Author: User

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:

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.