ActivePerl安装perl脚本转exe工具pp的方法

http://tilt.lib.tsinghua.edu.cn/node/516

 

1. 首先先到CPAN(www.cpan.org)上面搜索一下PAR::Packer,找到0.991版本,下载解压。
2. 命令行转到解压后的目录,运行perl Makefile.PL
3. 这时候会出提示Fetching 'PAR-Packer-0.991-MSWin32-x86-multi-thread-5.10.0.par' from www.cpan.org... done!
确保网络畅通并允许命令行访问网络(如果有防火墙的话)
4. 然后会有提示
Checking if your kit is complete...
Looks good
Warning: prerequisite Getopt::ArgvFile 1.07 not found.
Warning: prerequisite Module::ScanDeps 0.78 not found.
Warning: prerequisite Parse::Binary 0.04 not found.
Warning: prerequisite Win32::Exe 0.04 not found.
Writing Makefile for PAR::Packer
5. 注意装全上面warning中的四个模块,可以用ActrivePerl的ppm:
ppm install Getopt::ArgvFile
ppm install Module::ScanDeps
ppm install Module::ScanDeps
ppm install Win32::Exe
6. 然后就是老套路了,:-)
perl Makefile.PL
nmake
nmake test
nmake install
(注意nmake test时间很长)
7. 最后,可以编个脚本试一下:
pp -o foo.exe foo.pl
最后提醒一句,生成的exe文件还真是大。

 

 

过程中没有用nmake 全部用的dmake

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值