今天安装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。

相关文章:

  • 2022-12-23
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2022-03-02
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-18
  • 2022-01-21
  • 2022-12-23
  • 2021-08-05
  • 2022-02-12
  • 2021-12-07
相关资源
相似解决方案