わいえむねっと

Contents
Categories
Calendar
2026/08
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31
Monthly Archives
~2000/01
Recent Entries
RSS1.0
Templates
Information
Processed: 0.053 sec
Chashed: -
2009/03/10 Tue
インスタント味噌汁の賞味期限が1/27だったのを見なかったことにする。
そして飲む。(飲むな)
まだあります。 PARをインストール。
バージョンあわせる必要があったりとか割と面倒だったのでメモ。
まず、ppmでPAR 0.988をインストール。
ppがないので、


から PAR-Packer-0.982.tar.gz をダウンロードして、

>Makefile.PL
Fetching 'PAR-Packer-0.982-MSWin32-x86-multi-thread-5.8.8.par' from www.cpan.org... Fetching failed:
No compiler found, won't generate 'script/parl.exe'!
Checking if your kit is complete...
Looks good
Warning: prerequisite Getopt::ArgvFile 1.07 not found.
Warning: prerequisite Module::ScanDeps 0.78 not found. We have 0.77.
Warning: prerequisite Parse::Binary 0.04 not found.
Warning: prerequisite Win32::Exe 0.04 not found.
Writing Makefile for PAR::Packer

Makefileを生成して、Warning のでたパッケージをppmでインストールして、

>nmake

Microsoft (R) Program Maintenance Utility   Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.

         C:\Perl\bin\perl.exe "-Minc::Module::Install" -e "extract_par(q(PAR-Packer-0.982-MSWin32-x86-multi-thread-5.8.8.par))"
cp lib/App/Packer/PAR.pm blib\lib\App\Packer\PAR.pm
cp lib/PAR/Packer.pm blib\lib\PAR\Packer.pm
cp lib/PAR/Filter/Obfuscate.pm blib\lib\PAR\Filter\Obfuscate.pm
cp lib/PAR/Filter/PodStrip.pm blib\lib\PAR\Filter\PodStrip.pm
cp lib/PAR/StrippedPARL/Base.pm blib\lib\PAR\StrippedPARL\Base.pm
cp lib/PAR/Filter.pm blib\lib\PAR\Filter.pm
cp lib/PAR/Filter/PatchContent.pm blib\lib\PAR\Filter\PatchContent.pm
cp lib/PAR/StrippedPARL/Dynamic.pm blib\lib\PAR\StrippedPARL\Dynamic.pm
cp lib/PAR/Filter/Bytecode.pm blib\lib\PAR\Filter\Bytecode.pm
cp lib/pp.pm blib\lib\pp.pm
cp lib/PAR/Filter/Bleach.pm blib\lib\PAR\Filter\Bleach.pm
cp lib/PAR/StrippedPARL/Static.pm blib\lib\PAR\StrippedPARL\Static.pm
        C:\Perl\bin\perl.exe "-Iinc" -MExtUtils::Command -e cp script/tkpp blib\script\tkpp
        pl2bat.bat blib\script\tkpp
        C:\Perl\bin\perl.exe "-Iinc" -MExtUtils::Command -e cp script/pp blib\script\pp
        pl2bat.bat blib\script\pp
        C:\Perl\bin\perl.exe "-Iinc" -MExtUtils::Command -e cp script/par.pl blib\script\par.pl
        pl2bat.bat blib\script\par.pl

>nmake install

Microsoft (R) Program Maintenance Utility   Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.

         C:\Perl\bin\perl.exe "-Minc::Module::Install" -e "extract_par(q(PAR-Packer-0.982-MSWin32-x86-multi-thread-5.8.8.par))"
        C:\Perl\bin\perl.exe "-Iinc" -MExtUtils::Command -e cp script/tkpp blib\script\tkpp
        pl2bat.bat blib\script\tkpp
        C:\Perl\bin\perl.exe "-Iinc" -MExtUtils::Command -e cp script/pp blib\script\pp
        pl2bat.bat blib\script\pp
        C:\Perl\bin\perl.exe "-Iinc" -MExtUtils::Command -e cp script/par.pl blib\script\par.pl
        pl2bat.bat blib\script\par.pl
Installing C:\Perl\html\bin\par.html
Installing C:\Perl\html\bin\tkpp.html
Installing C:\Perl\html\site\lib\pp.html
Installing C:\Perl\html\site\lib\App\Packer\PAR.html
Installing C:\Perl\html\site\lib\PAR\Filter.html
Installing C:\Perl\html\site\lib\PAR\Packer.html
Installing C:\Perl\html\site\lib\PAR\Filter\Bleach.html
Installing C:\Perl\html\site\lib\PAR\Filter\Bytecode.html
Installing C:\Perl\html\site\lib\PAR\Filter\Obfuscate.html
Installing C:\Perl\html\site\lib\PAR\Filter\PatchContent.html
Installing C:\Perl\html\site\lib\PAR\Filter\PodStrip.html
Installing C:\Perl\html\site\lib\PAR\StrippedPARL\Base.html
Installing C:\Perl\html\site\lib\PAR\StrippedPARL\Dynamic.html
Installing C:\Perl\html\site\lib\PAR\StrippedPARL\Static.html
Installing C:\Perl\site\lib\pp.pm
Installing C:\Perl\site\lib\App\Packer\PAR.pm
Installing C:\Perl\site\lib\PAR\Filter.pm
Installing C:\Perl\site\lib\PAR\Packer.pm
Installing C:\Perl\site\lib\PAR\Filter\Bleach.pm
Installing C:\Perl\site\lib\PAR\Filter\Bytecode.pm
Installing C:\Perl\site\lib\PAR\Filter\Obfuscate.pm
Installing C:\Perl\site\lib\PAR\Filter\PatchContent.pm
Installing C:\Perl\site\lib\PAR\Filter\PodStrip.pm
Installing C:\Perl\site\lib\PAR\StrippedPARL\Base.pm
Installing C:\Perl\site\lib\PAR\StrippedPARL\Dynamic.pm
Installing C:\Perl\site\lib\PAR\StrippedPARL\Static.pm
Installing C:\Perl\site\bin\par.bat
Installing C:\Perl\site\bin\par.pl
Installing C:\Perl\site\bin\pp
Installing C:\Perl\site\bin\pp.bat
Installing C:\Perl\site\bin\tkpp
Installing C:\Perl\site\bin\tkpp.bat
Appending installation info to C:\Perl\lib/perllocal.pod

make installして、

>pp -V
PAR Packager, version 0.982 (PAR version 0.988)
Copyright 2002-2008 by Audrey Tang <cpan@audreyt.org>

Neither this program nor the associated "parl" program impose any
licensing restrictions on files generated by their execution, in
accordance with the 8th article of the Artistic License:

        "Aggregation of this Package with a commercial distribution is
        always permitted provided that the use of this Package is embedded;
        that is, when no overt attempt is made to make this Package's
        interfaces visible to the end user of the commercial distribution.
        Such use shall not be construed as a distribution of this Package."

Therefore, you are absolutely free to place any license on the resulting
executable, as long as the packed 3rd-party libraries are also available
under the Artistic License.

This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.  There is NO warranty; not even for
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

とりあえず完了。

>pp foo.pl
PAR::StrippedPARL::Static->get_raw() did not return the raw binary data for a PAR loader at C:/Perl/site/lib/PAR/StrippedPARL/Base.pm line 141, <DATA> line 1.
Could not write temporary parl (class PAR::StrippedPARL::Static) to file 'C:\DOCUME~1\foo\LOCALS~1\Temp\parl2nQT.exe' at C:/Perl/site/lib/PAR/StrippedPARL/Base.pm line 65, <DATA> line 1.
C:\Perl\site\bin/pp: Failed to extract a parl from 'PAR::StrippedPARL::Static' to file 'parlbkvuwtT.exe' at C:/Perl/site/lib/PAR/Packer.pm line 1157, <DATA> line 1.

しかし動かず。
ログを見返してみると、PAR-Packer-0.982-MSWin32-x86-multi-thread-5.8.8.par がないとかなんとか。


を確認したところ PAR-Packer-0.982-MSWin32-x86-multi-thread-5.10.0.par はあるようなので、ActivePerlのほうを更新してみる。
ActivePerl-5.10.0.1004-MSWin32-x86-287188.msi をインストールして再試行。

>Makefile.PL
Fetching 'PAR-Packer-0.982-MSWin32-x86-multi-thread-5.10.0.par' from www.cpan.org... done!
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

今度はうまくいっている模様。
Warning のでたパッケージをppmでインストールして、

>nmake

Microsoft (R) Program Maintenance Utility   Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.

         C:\Perl\bin\perl.exe "-Minc::Module::Install" -e "extract_par(q(PAR-Packer-0.982-MSWin32-x86-multi-thread-5.10.0.par))"
        C:\Perl\bin\perl.exe "-Iinc" -MExtUtils::Command -e cp script/tkpp blib\script\tkpp
        pl2bat.bat blib\script\tkpp
        C:\Perl\bin\perl.exe "-Iinc" -MExtUtils::Command -e cp script/pp blib\script\pp
        pl2bat.bat blib\script\pp
        C:\Perl\bin\perl.exe "-Iinc" -MExtUtils::Command -e cp script/par.pl blib\script\par.pl
        pl2bat.bat blib\script\par.pl

>nmake install

Microsoft (R) Program Maintenance Utility   Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.

         C:\Perl\bin\perl.exe "-Minc::Module::Install" -e "extract_par(q(PAR-Packer-0.982-MSWin32-x86-multi-thread-5.10.0.par))"
        C:\Perl\bin\perl.exe "-Iinc" -MExtUtils::Command -e cp script/tkpp blib\script\tkpp
        pl2bat.bat blib\script\tkpp
        C:\Perl\bin\perl.exe "-Iinc" -MExtUtils::Command -e cp script/pp blib\script\pp
        pl2bat.bat blib\script\pp
        C:\Perl\bin\perl.exe "-Iinc" -MExtUtils::Command -e cp script/par.pl blib\script\par.pl
        pl2bat.bat blib\script\par.pl
Installing C:\Perl\html\bin\par.html
Installing C:\Perl\html\bin\tkpp.html
Installing C:\Perl\html\site\lib\pp.html
Installing C:\Perl\html\site\lib\App\Packer\PAR.html
Installing C:\Perl\html\site\lib\PAR\Filter.html
Installing C:\Perl\html\site\lib\PAR\Packer.html
Installing C:\Perl\html\site\lib\PAR\Filter\Bleach.html
Installing C:\Perl\html\site\lib\PAR\Filter\Bytecode.html
Installing C:\Perl\html\site\lib\PAR\Filter\Obfuscate.html
Installing C:\Perl\html\site\lib\PAR\Filter\PatchContent.html
Installing C:\Perl\html\site\lib\PAR\Filter\PodStrip.html
Installing C:\Perl\html\site\lib\PAR\StrippedPARL\Base.html
Installing C:\Perl\html\site\lib\PAR\StrippedPARL\Dynamic.html
Installing C:\Perl\html\site\lib\PAR\StrippedPARL\Static.html
Installing C:\Perl\site\lib\pp.pm
Installing C:\Perl\site\lib\App\Packer\PAR.pm
Installing C:\Perl\site\lib\PAR\Filter.pm
Installing C:\Perl\site\lib\PAR\Packer.pm
Installing C:\Perl\site\lib\PAR\Filter\Bleach.pm
Installing C:\Perl\site\lib\PAR\Filter\Bytecode.pm
Installing C:\Perl\site\lib\PAR\Filter\Obfuscate.pm
Installing C:\Perl\site\lib\PAR\Filter\PatchContent.pm
Installing C:\Perl\site\lib\PAR\Filter\PodStrip.pm
Installing C:\Perl\site\lib\PAR\StrippedPARL\Base.pm
Installing C:\Perl\site\lib\PAR\StrippedPARL\Dynamic.pm
Installing C:\Perl\site\lib\PAR\StrippedPARL\Static.pm
Installing C:\Perl\site\bin\par.bat
Installing C:\Perl\site\bin\par.pl
Installing C:\Perl\site\bin\parl.exe
Installing C:\Perl\site\bin\parldyn.exe
Installing C:\Perl\site\bin\pp
Installing C:\Perl\site\bin\pp.bat
Installing C:\Perl\site\bin\tkpp
Installing C:\Perl\site\bin\tkpp.bat
Appending installation info to C:\Perl\lib/perllocal.pod

>pp -V
PAR Packager, version 0.982 (PAR version 0.988)
Copyright 2002-2008 by Audrey Tang <cpan@audreyt.org>

Neither this program nor the associated "parl" program impose any
licensing restrictions on files generated by their execution, in
accordance with the 8th article of the Artistic License:

        "Aggregation of this Package with a commercial distribution is
        always permitted provided that the use of this Package is embedded;
        that is, when no overt attempt is made to make this Package's
        interfaces visible to the end user of the commercial distribution.
        Such use shall not be construed as a distribution of this Package."

Therefore, you are absolutely free to place any license on the resulting
executable, as long as the packed 3rd-party libraries are also available
under the Artistic License.

This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.  There is NO warranty; not even for
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

とりあえず完了。

>pp foo.pl
指定されたプログラムは実行できません。
C:\Perl\site\bin/pp: Failed to extract a parl from 'PAR::StrippedPARL::Static' to file 'parlPSLRgfF.exe' at C:/Perl/site/lib/PAR/Packer.pm line 1157, <DATA> line 1.

しかし動かず。
「指定されたプログラムは実行できません」?
試しにparl.exeを直接叩いてみたところ、「指定されたプログラムは実行できません」。
作業ディレクトリ内の PAR-Packer-0.982-MSWin32-x86-multi-thread-5.10.0.par から直接取り出したparl.exeを実行してみても、「指定されたプログラムは実行できません」。
なんで!
と思ったら、他の環境だと動いた。
なんで!ああ!


これか!

>pp -e "print 'Hello world'"

>a.exe
Hello world
PAR-Packer-0.980-MSWin32-x86-multi-thread-5.8.8.par はあるようなので、Perlが5.8.8の場合は PAR-Packer-0.980.tar.gz を使えばよさそうかなと。 そしてタコの唐揚げ食う。
2009/03/09 Mon
デスクが欲しいなぁと眺めてたら朝。 ぼけとしたり、ぼけとしつつ仕事したり、お茶をひっくり返してキーボードにぶちまけたり。
ぎゃー!
ひっくり返したらだばーとでてくるほどのぶちまけかたですよ。
キーボードが私物で良かったというか良くなかったというか。
とりあえず乾かそう。 そしてタコの唐揚げ食う。
2009/03/08 Sun
そういえば24時間くらい何も食べていない気がするというか、ようするに昨日一日何も食べていないじゃないかという気がしたので、とりあえずタコの唐揚げ食う。 USB接続の地デジチューナーを買って、帰って、開封してから、絶賛放置中なわけですが、とりあえずPCをアンテナ線の近くに移動してみる。
特にまだ接続はしない。(しろよ) 油断してたらまた20時間くらい何も食べていない気がしたので、とりあえずタコの唐揚げ食う。 ぽっぴっぽーエンドレス。
2009/03/07 Sat
旅館の最上階のプール際で3人の女性から踏まれて大喜び的な夢を見ました。
なんですかこれ。
シチュエーションもさることながら、旅館の最上階にプールという構造もよくわかりません。
なんですかこれ。 体調は概ね回復したかもしてないかも。
2009/03/06 Fri
WBCを理由に飲み会延期て!
体調が回復しきってないのでちょうどいいといえばいいのだけれど。 資料送付。
2009/03/05 Thu
デイリーの ひじきキムチおむすび がうまい。 PAR関連のライセンスをぼけと眺めたりとか。

http://docs.activ​estate.com​/activeperl​/5.10/EULA-Community_​License.tx​t
4. The license also allows You to redistribute parts of the Package as
part of an application generated by wrapping tools such as PAR,
PerlApp or Perl2Exe. However, this License does not allow You to
(a) redistribute the Package as a whole, (b) use its parts to
create a language distribution, or (c) redistribute the PerlScript,
Perl for ISAPI or PerlEx components with Your application.

http://perldoc.jp​/docs/modules/PAR-0.75/script/par.pod
このプログラム及びparlプログラムに関連するものはどちらも、これらによって生成されたファイルに対し、いかなるライセンス制限も課さない。これはArtistic Licenseの第八条に従う:
携帯からtracdの基本認証がうまく通らない。
2009/03/04 Wed
過剰ビタミンウォーター。 風邪が治りません。
あと、左腕の違和感が酷い。 新規プロジェクトの検討資料作成を唐突に振られる。
この人使いはどうにかならないのかにゃーと放置気味にしつつ検討したりドキュメント書いたり。
2009/03/03 Tue
熱下がった。
と思いきや、また上がった。
体調不良のせいか、指の痺れがかなりいただけない状況。 そんな状況にもかかわらず寄り道。ハードディスクを買って帰る。
起動ディスクなので容量はどうでもいいやーと80GBを買うつもりだったものの数百円しか違わないのに80GBにするのもなぁと160GBにしたつもりだったのに帰宅して開封してみたら250GBが。
あれ?? グラフィックカードのファンが五月蝿くなってきたのでもういっそのことファンレスにしてやれとGeForce FX 5200をついでに購入。
GFX5200-LA128C。
2009/03/02 Mon
焦燥感。
あと、発熱。 相変わらずこの人の根回しの周到さといったらないな! ワンカップ大関の燗を飲んで寝ます。
2009/03/01 Sun
風邪治らず。 それでも出かけようと思いきや、心が折れて引き返す。
そしてなぜかクォーターパウンダーダブルを買って帰る。

http://ja.wikiped​ia.org/wiki/%E3%82%AF%​E3%82%A9%E​3%83%BC%E3​%82%BF%E3%​83%BC%E3%8​3%91%E3%82​%A6%E3%83%​B3%E3%83%8​0%E3%83%BC​
通常のハンバーガーのパティの重さは1枚あたり30グラム。すなわちクォーターパウンダーのパティは1枚だけでも「メガマック」(30グラム×4枚=120グラム)のパティに近いボリュームがあると言える。

体調不良のときに食うもんじゃねぇな。