ActivPerlでCatalyst

Catalyst::Helper::View::TT
が必要だが、PPM経由でインスコできないみたいなので、CPANから落として
PerlLibのCatalystディレクトリに突っ込むこと。
Template::TimerはPPMからインスコ可能なので、
ppm instal Template-Timerでインスコ


D:\Catalyst>catalyst HelloCatalyst
created "HelloCatalyst"
created "HelloCatalyst\script"
created "HelloCatalyst\lib"
created "HelloCatalyst\root"
created "HelloCatalyst\t"
created "HelloCatalyst\t\m"
created "HelloCatalyst\t\v"
created "HelloCatalyst\t\c"
created "HelloCatalyst\lib\HelloCatalyst"
created "HelloCatalyst\lib\HelloCatalyst\M"
created "HelloCatalyst\lib\HelloCatalyst\V"
created "HelloCatalyst\lib\HelloCatalyst\C"
created "HelloCatalyst\lib\HelloCatalyst.pm"
created "HelloCatalyst/Build.PL"
created "HelloCatalyst/Makefile.PL"
created "HelloCatalyst/README"
created "HelloCatalyst/Changes"
created "HelloCatalyst\t/01app.t"
created "HelloCatalyst\t/02pod.t"
created "HelloCatalyst\t/03podcoverage.t"
created "HelloCatalyst\script/hellocatalyst_cgi.pl"
created "HelloCatalyst\script/hellocatalyst_fastcgi.pl"
created "HelloCatalyst\script/hellocatalyst_server.pl"
created "HelloCatalyst\script/hellocatalyst_test.pl"
created "HelloCatalyst\script/hellocatalyst_create.pl"
D:\Catalyst>cd HelloCatalyst
D:\Catalyst>perl .\HelloCatalyst\script\hellocatalyst_create.pl view TT TT
created "D:\Catalyst\HelloCatalyst\lib\HelloCatalyst\V\TT.pm"
created "D:\Catalyst\HelloCatalyst\t\v\tt.t"
D:\Catalyst>perl .\HelloCatalyst\script\hellocatalyst_server.pl
[Wed Aug 17 14:40:10 2005] [catalyst] [debug] Debug messages enabled
[Wed Aug 17 14:40:10 2005] [catalyst] [debug] Loaded dispatcher "Catalyst::Dispa
tcher"
[Wed Aug 17 14:40:10 2005] [catalyst] [debug] Loaded engine "Catalyst::Engine::H
TTP"
[Wed Aug 17 14:40:10 2005] [catalyst] [debug] Found home "D:\Catalyst\HelloCatal
yst"
[Wed Aug 17 14:40:11 2005] [catalyst] [debug] Loaded components
.=----------------------------------------------------------------------------=.
| HelloCatalyst::V::TT |
'=----------------------------------------------------------------------------='
[Wed Aug 17 14:40:11 2005] [catalyst] [debug] Loaded private actions
.=-------------------------------------+--------------------------------------=.
| Private | Class |
|=-------------------------------------+--------------------------------------=|
| /default | HelloCatalyst |
| /page2 | HelloCatalyst |
'=-------------------------------------+--------------------------------------='
[Wed Aug 17 14:40:11 2005] [catalyst] [debug] Loaded public actions
.=-------------------------------------+--------------------------------------=.
| Public | Private |
|=-------------------------------------+--------------------------------------=|
| /page2 | /page2 |
'=-------------------------------------+--------------------------------------='
[Wed Aug 17 14:40:11 2005] [catalyst] [info] HelloCatalyst powered by Catalyst 5
.23
You can connect to your server at http://localhost:3000/

と出力され、http://localhost:3000/にバインドされている模様。

で、ブラウザからアクセスしてみると。。。

アクセスできね〜〜〜Σ(´д`ノ)ノ
なんでだ?


(追記)

ブラウザからアクセスできました。

調査に使ったコマンドのメモ
netstat -nao
tasklist /svc

起動しているCatalystを終了させる際Ctr-Cで終了させたら
たまにおかしくなるもよう。
駄目な場合はしばらく放置or再起動で。


(さらに追記)

DB周りの実装の為、以下のモジュールも入れてみる。
PPM経由 Class::DBI::Loader::mysql
CPAN経由 Class::DBI::mysql

さて、とりあえずみんながやってるTinyURLからやってみますかね。

(さらなる追記)

CatalystHttpdはデフォルト3000番ポートを使用しますが、
この前、ブラウザ経由で表示できなかったのは、ポートのバッティングでした。