是一个Perl和Catalyst-Framework新手并尝试使用本教程学习它:http://search.cpan.org/~mramberg/Catalyst-Runtime-5.7001/lib/Catalyst/Manual/Tutorial/CatalystBasics.pod - 我完成了与教程完全相同的一切。 现在我想启动服务器并获得错误。我不知道如何处理它。
MyApp$ ./script/myapp_server.pl
[debug] Debug messages enabled
[debug] Statistics enabled
[debug] Loaded Config "/home/.../Catalyst/MyApp/myapp.conf"
Couldn't instantiate component "MyApp::Model::MyAppDB", "Recursive inheritance detected in package 'DBIx::Class' at /usr/local/share/perl/5.18.2/Class/C3/Componentised.pm line 154.
Compilation failed in require at /usr/local/share/perl/5.18.2/Catalyst/ScriptRunner.pm line 50.
Recursive inheritance detected in package 'Class::C3::Componentised' during global destruction.
不知道该怎么做。也许你有想法? 使用Perl 5.18.2,Catalyst :: Runtime5.90071和Catalyst :: Devel 1.39
答案 0 :(得分:0)
您使用的是旧版本的手册(5.7001),而不是Catalyst(5.90071)。最新手册可通过以下方式找到:
http://search.cpan.org/~ether/Catalyst-Manual/
检查您从中获得的模型定义与您拥有的模型定义。或者,您可以为MyApp :: Model :: MyAppDB提供代码吗?