ラベル Perl の投稿を表示しています。 すべての投稿を表示
ラベル Perl の投稿を表示しています。 すべての投稿を表示

日曜日, 10月 22, 2006

[Catalyst] 初期化@Windows

Catalystは前少しLinuxで試したけれど、今回はWindowsのActivePerlでチャレンジ。
まずはなんにせよ初期化の仕方から。

D:\Catalyst>c:\Perl\site\bin\catalyst.bat TEST
created "TEST"
created "TEST\script"
created "TEST\lib"
created "TEST\root"
created "TEST\root\static"
created "TEST\root\static\images"
created "TEST\t"
created "TEST\lib\TEST"
created "TEST\lib\TEST\Model"
created "TEST\lib\TEST\View"
created "TEST\lib\TEST\Controller"
created "TEST\test.yml"
created "TEST\lib\TEST.pm"
created "TEST\lib\TEST\Controller\Root.pm"
created "TEST/README"
created "TEST/Changes"
created "TEST\t/01app.t"
created "TEST\t/02pod.t"
created "TEST\t/03podcoverage.t"
created "TEST\root\static\images\catalyst_logo.png"
created "TEST\root\static\images\btn_120x50_built.png"
created "TEST\root\static\images\btn_120x50_built_shadow.png"
created "TEST\root\static\images\btn_120x50_powered.png"
created "TEST\root\static\images\btn_120x50_powered_shadow.png"
created "TEST\root\static\images\btn_88x31_built.png"
created "TEST\root\static\images\btn_88x31_built_shadow.png"
created "TEST\root\static\images\btn_88x31_powered.png"
created "TEST\root\static\images\btn_88x31_powered_shadow.png"
created "TEST\root\favicon.ico"
created "TEST/Makefile.PL"
created "TEST\script/test_cgi.pl"
created "TEST\script/test_fastcgi.pl"
created "TEST\script/test_server.pl"
created "TEST\script/test_test.pl"
created "TEST\script/test_create.pl"

D:\Catalyst>

日曜日, 10月 08, 2006

ActivePerlでEXEを作成2

Perlのexe化にはいくつか方法があるらしい
ActivePerlの商品版は、$150と書いてあるが、以外に安いね。

WindowsとなればGUIが使いたいが、どうなのだろう。
PARと合わせるにはこんなことも必要とのことだ。

土曜日, 10月 07, 2006

ActivePerlでEXEを作成

こちらを参考にActivePerlでwindows用のexeを作ってみた.

参考ページと少し異なったのでメモ

ActivePerlがv5.8.8-819だったので(GUIになった)ppmから,
  • PARとWin32-EXEモジュールを追加インストール
  • pp.exeはC:\perl\site\bin以下に入るのでPATHを追加
これくらいでpp.exeが動き,本当に普通にexeが出来た.素晴らしい.

仕組みとしてperl.dllとスクリプトを一本の圧縮ファイルにしておいて,
(Perlのインストール無くとも)実行できるだけ.

だからさすがに出来たファイルのサイズも大きい(Perlで50行程度の
ものなのに,,1.3Mでした).

D:\>pp -V
Set up gcc environment - 3.2.3 (mingw special 20030504-1)
Perl Packager, version 0.12 (PAR version 0.90)
Copyright 2002, 2003, 2004, 2005 by Autrijus Tang

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.


D:\>

ちなみに,PARのバグレポートはココ