Catalyst 对 Perl 5.8.8 的支持
Perl 5.8.8 support with Catalyst
执行催化剂服务器脚本时遇到以下问题。
Couldn't load class (Catalyst::Script::Server) because: "ensure_class_loaded" is not exported by the Catalyst::Utils module
Can't continue after import errors at /opt/madhan/lib/perl5/Catalyst/ScriptRole.pm line 7.
BEGIN failed--compilation aborted at /opt/madhan/lib/perl5/Catalyst/ScriptRole.pm line 7.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/Module/Runtime.pm line 313.
Compilation failed in require at /opt/madhan/lib/perl5/Catalyst/ScriptRunner.pm line 13.
Catalyst::ScriptRunner::find_script_class("Catalyst::ScriptRunner", "testsite", "Server") called at /opt/madhan/lib/perl5/Catalyst/ScriptRunner.pm line 42
Catalyst::ScriptRunner::run("Catalyst::ScriptRunner", "testsite", "Server") called at /opt/madhan/testsite/script/testsite_server.pl line 8
perl 5.8.8 会支持 Catalyst MVC 吗?
这是 Catalyst 中的错误。 Catalyst::ScriptRole(自 2012 年以来!)中有一些类型检查代码已完全损坏,但损坏仅在特定情况下可见——即,如果脚本提供 loader_class
到 Catalyst::ScriptRole 尚未加载 class(可能从来没有人加载过), 或 如果系统具有非常旧的 UNIVERSAL.pm 版本,例如已发货使用 perl 5.8。这是您 运行 遇到的第二种情况。
我已经向 Catalyst-Runtime 推送了一个补丁来解决这个问题; 希望它能尽快发布它包含在Catalyst-Runtime 5.90115。
执行催化剂服务器脚本时遇到以下问题。
Couldn't load class (Catalyst::Script::Server) because: "ensure_class_loaded" is not exported by the Catalyst::Utils module
Can't continue after import errors at /opt/madhan/lib/perl5/Catalyst/ScriptRole.pm line 7.
BEGIN failed--compilation aborted at /opt/madhan/lib/perl5/Catalyst/ScriptRole.pm line 7.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/Module/Runtime.pm line 313.
Compilation failed in require at /opt/madhan/lib/perl5/Catalyst/ScriptRunner.pm line 13.
Catalyst::ScriptRunner::find_script_class("Catalyst::ScriptRunner", "testsite", "Server") called at /opt/madhan/lib/perl5/Catalyst/ScriptRunner.pm line 42
Catalyst::ScriptRunner::run("Catalyst::ScriptRunner", "testsite", "Server") called at /opt/madhan/testsite/script/testsite_server.pl line 8
perl 5.8.8 会支持 Catalyst MVC 吗?
这是 Catalyst 中的错误。 Catalyst::ScriptRole(自 2012 年以来!)中有一些类型检查代码已完全损坏,但损坏仅在特定情况下可见——即,如果脚本提供 loader_class
到 Catalyst::ScriptRole 尚未加载 class(可能从来没有人加载过), 或 如果系统具有非常旧的 UNIVERSAL.pm 版本,例如已发货使用 perl 5.8。这是您 运行 遇到的第二种情况。
我已经向 Catalyst-Runtime 推送了一个补丁来解决这个问题; 希望它能尽快发布它包含在Catalyst-Runtime 5.90115。