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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章