Installing Python and Yum

Source: Internet
Author: User

1. Install Python

Download Python source Package

[Email protected] ~]# wget http://www.python.org/ftp/python/2.4.3/Python-2.4.3.tar.bz2

Extract Python source Package

[Email protected] ~]# tar jxvf python-2.4.3.tar.bz2

Compiling and installing Python

[Email protected] ~]# CD Python-2.4.3

[Email protected] python-2.4.3]#./configure

Checking MACHDEP ... linux2

Checking Extraplatdir ...


Checking for--WITHOUT-GCC ... no

Checking for--with-cxx=<compiler>

Checking for C + + ... C + +

Checking for/dev/ptmx ... yes

Checking FOR/DEV/PTC ... no

Checking for socklen_t ... yes

Checking for build directories ... done

Configure:creating./config.status

Config.status:creating Makefile.pre

Config.status:creating Modules/setup.config

Config.status:creating pyconfig.h

Creating Setup

Creating setup.local

Creating Makefile

[[email protected] python-2.4.3]# make

[[email protected] python-2.4.3]# make install

Running install_scripts

Copying build/scripts-2.4/smtpd.py-/usr/local/bin

Copying Build/scripts-2.4/pydoc-/usr/local/bin

Copying Build/scripts-2.4/idle-/usr/local/bin

Changing mode of/usr/local/bin/smtpd.py to 755

Changing mode Of/usr/local/bin/pydoc to 755

Changing mode of/usr/local/bin/idle to 755

If Test-f/usr/local/bin/python-o-h/usr/local/bin/python; \

Then Rm-f/usr/local/bin/python; \

else true; \

Fi

(cd/usr/local/bin; ln python2.4 python)

Creating Directory/usr/local/man

Creating Directory/usr/local/man/man1

/usr/bin/install-c-M 644/misc/python.man \

/usr/local/man/man1/python.1

2. Download and install Python-urlgrabber,python-pycurl,yum-metadata-parser

[[Email protected] ~] wget http://mirrors.163.com/centos/5/os/x86_64/CentOS/python-urlgrabber-3.9.1-8.el6.noarch.rpm

[[Email protected] ~] wget http://mirrors.163.com/centos/5/os/x86_64/CentOS/python-pycurl-7.19.0-8.el6.x86_64.rpm

[[Email protected] ~] wget http://mirrors.163.com/centos/5/os/x86_64/CentOS/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm

[[Email protected] ~] RPM-IVH python-urlgrabber-3.9.1-8.el6.noarch.rpm python-pycurl-7.19.0-8.el6.x86_64.rpm yum-metadata-parser-1.1.2-16.el6.x86_64.rpm


This article is from the "Debris Memory" blog, please be sure to keep this source http://debris.blog.51cto.com/1614432/1733592

Installing Python and Yum

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.