[HOME] [戻る]

玄箱インストールmemo(python)

目次

Python-2.4

インストール手順

tar jxf Python-2.4.tar.bz2
cd Python-2.4
./configure --prefix=/usr
make
make test
make install

テスト結果

252 tests OK.
1 test failed:
    test_shutil
37 tests skipped:
    test_aepack test_al test_applesingle test_bsddb test_bsddb185
    test_bsddb3 test_cd test_cl test_codecmaps_cn test_codecmaps_hk
    test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_curses
    test_gl test_imgfile test_ioctl test_linuxaudiodev test_locale
    test_macfs test_macostools test_nis test_normalization
    test_ossaudiodev test_pep277 test_plistlib test_scriptpackages
    test_socket_ssl test_socketserver test_sunaudiodev test_tcl
    test_timeout test_unicode_file test_urllib2net test_urllibnet
    test_winreg test_winsound
4 skips unexpected on linux2:
    test_tcl test_locale test_ioctl test_bsddb

 realusersys
configure4m15.493s2m11.010s1m56.590s
make24m47.794s23m10.260s1m0.210s
make test51m46.606s43m9.780s4m22.580s

確認

cd /usr/bin
ls -lt |head

-rwxr-xr-x  2 root root 3073879 Feb  9 02:37 python
-rwxr-xr-x  2 root root 3073879 Feb  9 02:37 python2.4

rm python2.4

strip -p python

ls -lt |head
-rwxr-xr-x  1 root root 1156048 Feb  9 02:37 python

実行例

jun@kuro:~$ python
Python 2.4 (#1, Feb  9 2005, 01:33:51)
[GCC 2.95.3 20010315 (release)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print 1+1
2
>>>

2005/02/10
ご意見・ご感想は,こちらの掲示板 まで.