Compile Python3 For example:
1. Download the source package (may be. tar.gz, tar.bz2 format, or it may be downloaded from git)
2. Get the source package decompression
Source files: usually. C. py and the like
Detection file: The name is usually configure
Software Installation and description is generally installed or readme (there will be a general installation process)
3. To the Directory./configure
The Configure file is a script that detects your Linux system, the associated software, and the configuration of the system, and, after running this file, generates a file named makefile.
4.make
Make compiles the source code and links the corresponding library files to form executable files. Due to differences in Linux distributions, the same software source is in different Linux
The methods of compiling in distribution are often different. How does this command know how to compile the source code in your environment? This is the makefile file generated by the Configure command in the previous step.
5. Make install
After the compilation is successful, it needs to be installed. Linux so-called installation, in fact, the main thing is to put the relevant files into the correct directory.
Reference: http://www.androiddev.net/redhat-centos-software-sourcecode/
CentOS compiled source code