以下过程在`Red Hat Enterprise Linux 7`系统上验证通过。 # 下载 先下载ptkdb源码:[https://www.cpan.org/authors/id/A/AE/AEPAGE/Devel-ptkdb-1.1091.tar.gz](https://www.cpan.org/authors/id/A/AE/AEPAGE/Devel-ptkdb-1.1091.tar.gz) # 编译 解压tar: ``` tar -xf Devel-ptkdb-1.1091.tar.gz ``` 安装依赖包: ``` yum install perl-Tk ``` 编译: ``` cd Devel-ptkdb-1.1091/ perl Makefile.PL make test make install ``` # 使用 ``` perl -d:ptkdb 022_crash_temp_files.pl ``` ![image-20230822090528639](../../../../ff_internal_upload/img/2023/image-20230822090528639.png) # 参考 * [perl调试工具ptkdb简单介绍](https://www.syue.com/Software/Language/Perl/803.html)