# 目的

在Windows中把Perl程式編譯成可執行檔

# install activeperl for windows

use version ActivePerl-5.6.1.638-MSWin32-x86.msi(只能用561的版本!)

# 在Windows中安裝PAR前
# 先安裝相依性的模組

ppm install Module::ScanDeps
ppm install PAR::Dist
ppm install Parse::Binary
ppm install Archive::Zip

# 到CPAN網站,抓以下Package,並安裝
# 安裝方式為,perl Makefile.PL && nmake && nmake install

Test::Simple
Win32::Exe
PAR

# test

echo print "123\n";>test01.pl
pp -o test.exe test01.pl

# please execute test.exe

test.exe
arrow
arrow
    全站熱搜

    付爸爸 發表在 痞客邦 留言(0) 人氣()