#freeze
''目次''
#contents
~
----
*目的 [#c6060cf5]
*準備 [#lb5f5fd5]
*インストール [#c721d7d5]
+ソースの取得
# wget -P /usr/local/src http://www.python.org/ftp/python/2.6.2/Python-2.6.2.tgz
~
+ソースの解凍
# cd /usr/local/src
# tar zxvf Python-2.6.2.tgz
~
+コンパイル設定~
[[configureのヘルプ>python-2.6.2のconfigureヘルプ]]
# cd /usr/local/src/Python-2.6.2
# ./configure --prefix=/usr/local/python-2.6.2
~
+インストール
# make
# make install
~
+シンボリックリンクの作成
# ln -s /usr/local/python-2.6.2 /usr/local/python
~
+PATH設定
# vi ~/.bash_profile
PATH=/usr/local/python/bin:$PATH
export PATH
# source ~/.bash_profile
~
+easy_installのインストール
# wget -P /usr/local/src http://peak.telecommunity.com/dist/ez_setup.py
# cd /usr/local/src
# python ez_setup.py
Downloading http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c9-py2.6.egg
Processing setuptools-0.6c9-py2.6.egg
Copying setuptools-0.6c9-py2.6.egg to /usr/local/python-2.6.2/lib/python2.6/site-packages
Adding setuptools 0.6c9 to easy-install.pth file
Installing easy_install script to /usr/local/python/bin
Installing easy_install-2.6 script to /usr/local/python/bin
Installed /usr/local/python-2.6.2/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg
Processing dependencies for setuptools==0.6c9
Finished processing dependencies for setuptools==0.6c9