CentOS5.6に、python2.6をインストール
2011年12月1日CentOS5でyumを利用してインストールできるのは、2.4とやや古め。
そこで、以下のURLを参考にpython2.6をインストールした。
【yumを利用してpython26をインストール】
$ sudo yum search python26 --enablerespo=epel Loaded plugins: allowdowngrade, fastestmirror Repository dag is listed more than once in the configuration Repository atrpms is listed more than once in the configuration Loading mirror speeds from cached hostfile * base: ftp.jaist.ac.jp * epel: ftp.jaist.ac.jp * extras: ftp.jaist.ac.jp * updates: ftp.jaist.ac.jp epel | 3.7 kB 00:00 epel/primary_db | 3.2 MB 00:07 ====================================================================== Matched: python26 ======================================================================= dpm-python26.i386 : Disk Pool Manager (DPM) python bindings lfc-python26.i386 : LCG File Catalog (LFC) python bindings nordugrid-arc-python26.i386 : ARC Python wrapper python26.i386 : An interpreted, interactive, object-oriented programming language python26-Cython.i386 : A language for writing Python extension modules python26-PyXML.i386 : XML libraries for python python26-ZSI.noarch : Zolera SOAP Infrastructure for Python 2.6 python26-argparse.noarch : Optparse inspired command line parser for Python python26-babel.noarch : Library for internationalizing Python applications python26-boto.noarch : A simple lightweight interface to Amazon Web Services python26-crypto.i386 : Cryptography library for Python python26-devel.i386 : The libraries and header files needed for Python development python26-dirq.noarch : Directory based queue for python26 python26-distribute.noarch : Easily build and distribute Python packages python26-dns.noarch : DNS toolkit for Python 2.6 python26-eventlet.noarch : Highly concurrent networking library python26-gdata.noarch : A Python module for accessing online Google services python26-greenlet.i386 : Lightweight in-process concurrent programming python26-greenlet-devel.i386 : C development headers for python-greenlet python26-httplib2.noarch : Comprehensive HTTP client library python26-imaging.i386 : Python's own image processing library python26-imaging-devel.i386 : Development files for python-imaging python26-imaging-sane.i386 : Python Module for using scanners python26-imaging-tk.i386 : Tk interface for python-imaging python26-inotify.noarch : Monitor filesystem events with Python under Linux python26-jinja2.noarch : General purpose template engine python26-ldap.i386 : An object-oriented API to access LDAP directory servers python26-libs.i386 : The libraries for python runtime python26-m2crypto.i386 : Support for using OpenSSL in python 2.6 scripts python26-markupsafe.i386 : Implements a XML/HTML/XHTML Markup safe string for Python python26-mod_python.i386 : An embedded Python interpreter for the Apache HTTP Server python26-mod_wsgi.i386 : A WSGI interface for Python web applications in Apache python26-nose.noarch : A discovery-based unittest extension for Python python26-numpy.i386 : A fast multi-dimensional array facility for Python python26-numpy-devel.i386 : Header files for creating C extension to Numpy python26-numpy-f2py.i386 : FORTRAN for python interface for numpy python26-numpy-f2py-tests.i386 : Test suite for FORTRAN for python interface for numpy python26-numpy-tests.i386 : Tests for Numpy distribute python26-paramiko.noarch : SSH2 protocol library for python python26-pbs.i386 : PBS/Torque python module python26-pygments.noarch : A syntax highlighting engine written in Python 2.6 python26-simplejson.i386 : Simple, fast, extensible JSON encoder/decoder for Python python26-sqlalchemy.noarch : Modular and flexible ORM library for python26 python26-stomppy.noarch : Python stomp client for messaging for python 2.6 python26-test.i386 : The test modules from the main python package python26-tools.i386 : A collection of development tools included with Python python26-virtualenv.noarch : Tool to create isolated Python environments root-python26.i386 : Python extension for ROOT</p> <p>$ sudo yum install python26 --enablerepo=epel $ python26 Python 2.6.5 (r265:79063, Feb 28 2011, 21:55:56) [GCC 4.1.2 20080704 (Red Hat 4.1.2-50)] on linux2 Type "help", "copyright", "credits" or "license" for more information.</p> <blockquote> <blockquote> <p>>
【各パッケージも合わせてインストール】
$ sudo yum install -y pyhon26* --enablerepo=epel
【参考】