RHEL6 install Python and other packages from source
Add Date :
2018-11-21
## Get zlib-devel source and build install it
$ Wget --no-check-certificate http://zlib.net/zlib-1.2.8.tar.gz
$ Tar -zxf zlib-1.2.8.tar.gz
$ Cd zlib-1.2.8
$ ./configure
$ Make && make install
#### /usr/local/include/zlib.h Zconf.h
## Python ---> zlib-devel
## Get python source and build install it
$ Wget --no-check-certificate https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz
$ Tar -zxf Python-2.7.9.tgz
$ Cd Python-2.7.9
$ ./configure --with-Zlib = / usr / local / include
$ Make && make install
## Test:
$ Python
>>> Import zlib