perl TK 安装问题

perl TK 安装问题

CPAN.pm: Going to build N/NI/NI-S/Tk-804.027.tar.gz

/usr/bin/perl is installed in /usr/lib/perl/5.8 okay
PPM for perl5.008007
Test Compiling config/signedchar.c
Test Compiling config/Ksprintf.c
Test Compiling config/tod.c
Test Compiling -DTIMEOFDAY_TZ config/tod.c
TZ gettimeofday()
Using -L/usr/lib to find /usr/lib/libX11.so.6.2.0
Cannot find X include files via /usr/include
Cannot find X include files anywhere at ./myConfig line 332.
Compilation failed in require at Makefile.PL line 36.
BEGIN failed--compilation aborted at Makefile.PL line 38.
Running make test
  Make had some problems, maybe interrupted? Won't test
Running make install
  Make had some problems, maybe interrupted? Won't install
取得Tk的source code..看看里面的install/readme..应该有告诉你要先安装哪些libaray..
你少装了一个跟Xwindow有关系的library....
ppm install tk
用心立德把它给装上了,我用的是 ubuntu
请问大家有没有有关perl TK的书,帮我介绍几本
要学Tk,看看这里,不错的

http://mptk.chunzi.org/zh_cn/tk/index.htm