wget http://python.org/ftp/python/3.0/Python-3.0.tar.bz2
tar jxvf Python-3.0.tar.bz2
cd Python-3.0
./configure --prefix=$HOME
make
make install
make install の最後に
* Note: not installed as 'python'.
* Use 'make fullinstall' to install as 'python'.
* However, 'make fullinstall' is discouraged,
* as it will clobber your Python 2.x installation.
と表示される。これで、
$ python3.0
Python 3.0 (r30:67503, Jan 12 2009, 22:53:45)
[GCC 3.4.4 [FreeBSD] 20050518] on freebsd6
Type "help", "copyright", "credits" or "license" for more information.
>>>
となる。
インストールされるファイルは以下のような感じ。
$ ls -1F *
bin:
2to3*
idle*
pydoc*
python3.0*
python3.0-config*
smtpd.py*
include:
python3.0/
lib:
python3.0/
この記事へのコメント
hoacits