VMPlayer でCentOS Linuxで環境構築したときのメモ。OS: CentOS 5.3 i386 (32bit)

virtualenvを使わずにインストールを行う方法
ソースからビルドしたpython2.6環境下に各種pythonモジュールを入れる。

setuptoolsを入れる

参考: http://surgo.jp/2009/11/centos-django-with-python2...
rootにスイッチして実施
wget http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11-py2.6.egg
PATH=$PATH:/opt/python2.6/bin sh setuptools-0.6c11-py2.6.egg --prefix=/opt/python2.6

pipを入れる

/opt/python2.6/bin の下のeasy_installを実行することが重要。
/opt/python2.6/bin/easy_install pip

その他のモジュールを入れる

# /opt/python2.6/bin 配下のpipを呼ぶ。
# パスを都度指定するのが面倒なので一時的にエイリアスを張る。
alias pip='/opt/python2.6/bin/pip'

pip install "mercurial==1.7.4"
pip install "django==1.1"
pip install django-extensions
pip install django-piston
pip install PIL
pip install zenhan
pip install python-dateutil
pip install python-openid
pip install gdata
pip install minimock
pip install MySQL-python
pip install python-memcached

# エイリアスを解除
unalias pip

mercurialのシンボリックリンクを張る

hgコマンドのシンボリックリンクを張る。
ln -s /opt/python2.6/bin/hg /usr/bin/hg

このページへのコメント

tlx3aA I am so grateful for your blog. Fantastic.

0
Posted by check it out 2014年01月22日(水) 12:37:31 返信

コメントをかく


「http://」を含む投稿は禁止されています。

利用規約をご確認のうえご記入下さい

管理人/副管理人のみ編集できます