2011年6月21日火曜日

Active Perlでexe作成してみた

下記を参考にさせていただきました。
PAR で Perl スクリプトを exe 化する(ActivePerl 5.12.2 編) - blog.remora.cx

C:\>pp -E "say q.Hello, World!." -o test1.exe
Set up gcc environment - 3.4.5 (mingw-vista special r3)
Error in tempfile() using ppXXXXX.pl: Could not create temp file ppxPqPm.pl: Per
mission denied at C:/Perl/site/lib/PAR/Packer.pm line 312

書き込み部分でErrがでたので、C:\Tempを作成し、そこで再度実行すると、うまくできました。

C:\Temp>pp -E "say q.Hello, World!." -o test1.exe
Set up gcc environment - 3.4.5 (mingw-vista special r3)
Set up gcc environment - 3.4.5 (mingw-vista special r3)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Set up gcc environment - 3.4.5 (mingw-vista special r3)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


作成されたexeは、zip圧縮されたものなので、普通に解凍すればソースも確認可能。と

このエントリーをはてなブックマークに追加