[b][size=3][color=blue]1、Python2.3.2的安装:[/color][/size][/b]
a、从[url]http://www.python.org[/url]的主页上下载python的最新稳定版2.3.2。
b、将源代码文件拷入/usr/local/src中。用命令解压:tar jxvf python.tar.bz2 生成相应的目录:Python-2.3.2
c、从[url]www.tcl.tk[/url]上下载最新的tcl脚本语言8.4和tk8。4
d、下载后将其拷入/usr/local/src,分别解压(进入相应的目录)通过以下三步完成tcl/tk的安装:
./configure; make; make install
3、再次进入Python的安装目录Python-2.3.2中并进入目录: Modules,编辑该目录下的文件:Setup.dist,将以下几名注释去掉:
[myphp]
# *** Always uncomment this (leave the leading underscore in!):
_tkinter _tkinter.c tkappinit.c -DWITH_APPINIT \
# *** Uncomment and edit to reflect where your Tcl/Tk libraries are:
-L/usr/local/lib \
# *** Uncomment and edit to reflect where your Tcl/Tk headers are:
-I/usr/local/include \
# *** Uncomment and edit to reflect where your X11 header files are:
-I/usr/X11R6/include \
# *** Or uncomment this for Solaris:
# -I/usr/openwin/include \
# *** Uncomment and edit for Tix extension only:
# -DWITH_TIX -ltix8.1.8.2 \
# *** Uncomment and edit for BLT extension only: