RUDRAKSH has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks,

I am having some problem when trying to start any catalyst application on 3000 port.

Version of catalyst and the Module that is creating problem is as follows

-----------------------------------------

Catalyst : 5.90009

Module::Runtime : 0.012

----------------------------------------

I have tried the following command and got the error

mayur@mayur-desktop:~$ catalyst.pl temp created "temp" created "temp/script" created "temp/lib" created "temp/root" created "temp/root/static" created "temp/root/static/images" created "temp/t" created "temp/lib/temp" created "temp/lib/temp/Model" created "temp/lib/temp/View" created "temp/lib/temp/Controller" created "temp/temp.conf" created "temp/temp.psgi" created "temp/lib/temp.pm" created "temp/lib/temp/Controller/Root.pm" created "temp/README" created "temp/Changes" created "temp/t/01app.t" created "temp/t/02pod.t" created "temp/t/03podcoverage.t" created "temp/root/static/images/catalyst_logo.png" created "temp/root/static/images/btn_120x50_built.png" created "temp/root/static/images/btn_120x50_built_shadow.png" created "temp/root/static/images/btn_120x50_powered.png" created "temp/root/static/images/btn_120x50_powered_shadow.png" created "temp/root/static/images/btn_88x31_built.png" created "temp/root/static/images/btn_88x31_built_shadow.png" created "temp/root/static/images/btn_88x31_powered.png" created "temp/root/static/images/btn_88x31_powered_shadow.png" created "temp/root/favicon.ico" created "temp/Makefile.PL" created "temp/script/temp_cgi.pl" created "temp/script/temp_fastcgi.pl" created "temp/script/temp_server.pl" created "temp/script/temp_test.pl" created "temp/script/temp_create.pl" Change to application directory and Run "perl Makefile.PL" to make sur +e your install is complete mayur@mayur-desktop:~/temp/script$ perl temp_server.pl Can't locate temp.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5 +.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/p +erl/5.10 /usr/local/lib/site_perl .) at /usr/local/share/perl/5.10.1/ +Module/Runtime.pm line 317. at /usr/local/share/perl/5.10.1/Catalyst/Script/Server.pm line 239

Please provide the solution.

Thanks

Mayur.

Replies are listed 'Best First'.
Re: Problem in starting a catalyst application
by thundergnat (Deacon) on Feb 16, 2012 at 14:18 UTC

    You are one level too deep in the directory structure. Try:

    mayur@mayur-desktop:~/temp$ perl script/temp_server.pl
Re: Problem in starting a catalyst application
by swapnil (Initiate) on Feb 21, 2012 at 13:28 UTC

    This is a reported bug for Catalyst::Runtime. See

    https://rt.cpan.org/Public/Bug/Display.html?id=75098

    Try

    perl -I lib ./script/<app_name>_server.pl