Catalyst
ActivePerlをインストールして、Perl Package Manager (GUIのツールです)というのを使って Catalyst::Devel を
インストールしたのだが、どうも
というエラーが出る。
PS D:\perl\apps> catalyst.bat HelloCouldn't load class (Catalyst::Exception::Basic) because: Can't use an undefined value as a HASH reference at D:/Perl/si
te/lib/MooseX/Role/WithOverloading/Meta/Role/Application.pm line 45.
Compilation failed in require at D:/Perl/site/lib/Class/MOP.pm line 114.
at D:/Perl/site/lib/Class/MOP.pm line 120
Class::MOP::__ANON__('Can\'t use an undefined value as a HASH reference at D:/Perl/...') called at D:/Perl/lib/Try/Tiny.pm line 100
Try::Tiny::try('CODE(0x298adfc)', 'Try::Tiny::Catch=REF(0x22bcb3c)') called at D:/Perl/site/lib/Class/MOP.pm line 125
Class::MOP::load_first_existing_class('Catalyst::Exception::Basic') called at D:/Perl/site/lib/Class/MOP.pm line 137
Class::MOP::load_class('Catalyst::Exception::Basic', undef) called at D:/Perl/site/lib/Moose/Util.pm line 113
Moose::Util::_apply_all_roles('Moose::Meta::Class=HASH(0x297f4d4)', undef, 'Catalyst::Exception::Basic') called at D:/Perl/site/lib/Moose/Util.pm line 91
Moose::Util::apply_all_roles('Moose::Meta::Class=HASH(0x297f4d4)', 'Catalyst::Exception::Basic') called at D:/Perl/site/lib/Moose.pm line 58
Moose::with('Moose::Meta::Class=HASH(0x297f4d4)', 'Catalyst::Exception::Basic') called at D:/Perl/site/lib/Moose/Exporter.pm line 359
Moose::with('Catalyst::Exception::Basic') called at D:/Perl/site/lib/Catalyst/Exception.pm line 50
require Catalyst/Exception.pm called at D:/Perl/site/lib/Catalyst.pm line 8
Catalyst::BEGIN() called at D:/Perl/site/lib/Catalyst/Exception.pm line 0
eval {...} called at D:/Perl/site/lib/Catalyst/Exception.pm line 0
:
以下略
仕方が無いので手動で
としたら入った。
PS D:\perl> perl -MCPAN -e 'install Catalyst'
無事に動いたようだ。
PS D:\perl\apps> catalyst.bat Hello
created "Hello"
created "Hello\script"
created "Hello\lib"
created "Hello\root"
created "Hello\root\static"
created "Hello\root\static\images"
created "Hello\t"
created "Hello\lib\Hello"
created "Hello\lib\Hello\Model"
created "Hello\lib\Hello\View"
created "Hello\lib\Hello\Controller"
created "Hello\hello.conf"
created "Hello\lib\Hello.pm"
created "Hello\lib\Hello\Controller\Root.pm"
created "Hello\README"
created "Hello\Changes"
created "Hello\t\01app.t"
created "Hello\t\02pod.t"
created "Hello\t\03podcoverage.t"
created "Hello\root\static\images\catalyst_logo.png"
created "Hello\root\static\images\btn_120x50_built.png"
created "Hello\root\static\images\btn_120x50_built_shadow.png"
created "Hello\root\static\images\btn_120x50_powered.png"
created "Hello\root\static\images\btn_120x50_powered_shadow.png"
created "Hello\root\static\images\btn_88x31_built.png"
created "Hello\root\static\images\btn_88x31_built_shadow.png"
created "Hello\root\static\images\btn_88x31_powered.png"
created "Hello\root\static\images\btn_88x31_powered_shadow.png"
created "Hello\root\favicon.ico"
created "Hello\Makefile.PL"
created "Hello\script\hello_cgi.pl"
created "Hello\script\hello_fastcgi.pl"
created "Hello\script\hello_server.pl"
created "Hello\script\hello_test.pl"
created "Hello\script\hello_create.pl"
Change to application directory and Run "perl Makefile.PL" to make sure your install is complete
PS D:\perl\apps> cd .\Hello
PS D:\perl\apps\Hello> .\script\hello_server.pl[debug] Debug messages enabled
[debug] Statistics enabled
[debug] Loaded plugins:
.----------------------------------------------------------------------------.
Catalyst::Plugin::ConfigLoader 0.30 |
'----------------------------------------------------------------------------'
[debug] Loaded dispatcher "Catalyst::Dispatcher"
[debug] Loaded engine "Catalyst::Engine::HTTP"
[debug] Found home "D:\perl\apps\Hello"
[debug] Loaded Config "D:\perl\apps\Hello\hello.conf"
[debug] Loaded components:
.-----------------------------------------------------------------+----------.
Class | Type |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- +
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Hello::Controller::Root | instance |
'-----------------------------------------------------------------+----------'
[debug] Loaded Private actions:
.----------------------+--------------------------------------+--------------.
Private | Class | Method |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- +
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
/default | Hello::Controller::Root | default |
/end | Hello::Controller::Root | end |
/index | Hello::Controller::Root | index |
'----------------------+--------------------------------------+--------------'
[debug] Loaded Path actions:
.-------------------------------------+--------------------------------------.
Path | Private |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- +
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
/ | /index |
/ | /default |
'-------------------------------------+--------------------------------------'
[info] Hello powered by Catalyst 5.80032
You can connect to your server at http://xxxx:3000