Can't locate Tk.pm

今天安装Perl的调试工具, Devel-ptkdb-1.1091.tar.gz解压后make test时报错:Can't locate Tk.pm。

This's because x11/tk doesn't contain Tk.pm. You need to install x11/p5-Tk.

具体怎么做呢?

1)sudo apt-get install libx11-dev

2)sudo cpan -i Tk          ##会自动地从CPAN上下载安装Tk.pm

此时还是会报错:make[1]: *** [Xlib_f.o] Error 1

make[1]: Leaving directory `/home/orisun/.cpan/build/Tk-804.029-NXYYkx/pTk'

make: *** [pTk/libpTk.a] Error 2 

SREZIC/Tk-804.029.tar.gz 

/usr/bin/make -- NOT OK

一切搞定后再安装Devel-ptkdb。

posted @ 2011-05-24 10:45  高性能golang  阅读(2218)  评论(0编辑  收藏  举报