目次



目的

準備

インストール

  1. ソースの取得
    # wget -P /usr/local/src http://www.python.org/ftp/python/2.5.2/Python-2.5.2.tgz

  2. ソースの解凍
    # cd /usr/local/src
    # tar zxvf Python-2.5.2.tgz

  3. コンパイル設定
    configureのヘルプ
    # cd /usr/local/src/Python-2.5.2
    # ./configure --prefix=/usr/local/python-2.5.2

  4. インストール
    # make
    # make install

  5. シンボリックリンクの作成
    # ln -s /usr/local/python-2.5.2 /usr/local/python

  6. PATH設定
    # vi ~/.bash_profile
    PATH=/usr/local/python/bin:$PATH
    export PATH
    
    # source ~/.bash_profile

  7. 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.5/s/setuptools/setuptools-0.6c8-py2.5.egg
    Processing setuptools-0.6c8-py2.5.egg
    Copying setuptools-0.6c8-py2.5.egg to /usr/local/python-2.5.2/lib/python2.5/site-packages
    Adding setuptools 0.6c8 to easy-install.pth file
    Installing easy_install script to /usr/local/python/bin
    Installing easy_install-2.5 script to /usr/local/python/bin
    
    Installed /usr/local/python-2.5.2/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg
    Processing dependencies for setuptools==0.6c8
    Finished processing dependencies for setuptools==0.6c8

トップ   編集 凍結解除 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2023-05-10 (水) 20:53:55