Compiling the installation steps is simple, as follows:
# wget https://www.python.org/ftp/python/2.6.1/Python-2.6.1.tgz
# tar zxvf python-2.6.1.tgz
# CD Python-2.6.1
#./configure--prefix=/usr/local--enable-shared
# make && make install
The following error message was encountered during compilation:
Gcc-pthread-c-fno-strict-aliasing-dndebug-g-fwrapv-o3-wall-wstrict-prototypes
-I.-iinclude-i./include -dpy_build_core-dsvnversion=\ "' Lc_all=c svnversion. '"-
o modules/getbuildinfo.o./modules/getbuildinfo.c
gcc:error:directory ": No such file or directory make
: * * * [MODULES/GETBUILDINFO.O] Error 1
This is a bug in configure that modifies the generated makefile file and finds the following:
cc= gcc-pthread
cxx= g++-pthread maincc= $ ( CC)
linkcc= $ (PURIFY) $ (MAINCC)
ar= AR
ranlib= ranlib
svnversion= svnversion $ (srcdir)
Change the last line's svnversion variable value to empty, and then make && make install again
Svnversion= ""