RHEL6 install Python and other software packages from the source code

Source: Internet
Author: User

RHEL6 install Python and other software packages from the source code

RHEL6 install Python and other software packages from the source code

# 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
$ Zlib-1.2.8 cd
$./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


# Python-setuptools
$ Wget -- no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-15.0.tar.gz#md5=2a6b2901b6c265d682139345849cbf03
$ Tar-zxf setuptools-15.0.tar.gz
$ Setuptools-15.0 cd
$ Python setup. py build
$ Python setup. py install


# MarkupSafe
$ Wget -- no-check-certificate https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-0.23.tar.gz
$ Tar-zxf MarkupSafe-0.23.tar.gz
$ MarkupSafe-0.23 cd
$ Python setup. py build
$ Python setup. py install


# Jinja2 => MarkupSafe
#### $ Git clone https://github.com/mitsuhiko/jinja2.git
#### $ Wget -- no-check-certificate https://pypi.python.org/packages/source/J/Jinja2/Jinja2-2.7.3.tar.gz
$ Wget -- no-check-certificate https://pypi.python.org/packages/source/J/Jinja2/Jinja2-2.0.tar.gz
$ Tar-zxf Jinja2-2.7.3.tar.gz
$ Jinja2-2.7.3 cd
$ Python setup. py build
$ Python setup. py install


# Libyaml
$ Wget -- no-check-certificate http://pyyaml.org/download/libyaml/yaml-0.1.5.tar.gz
$ Tar-zxf yaml-0.1.5.tar.gz
$ Yaml-0.1.5 cd
$./Configure
$ Make & make install
###/Usr/local/include/yaml. h


# PyYAML ---> libyaml
$ Wget -- no-check-certificate https://pypi.python.org/packages/source/P/PyYAML/PyYAML-3.11.tar.gz#md5=f50e08ef0fe55178479d3a618efe21db
$ Tar-zxf PyYAML-3.11.tar.gz
$ PyYAML-3.11 cd
$ Python setup. py build
$ Python setup. py install
#### Test
$ Python
>>> Import yaml

-------------------------------------- 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.