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

Hi all,

I'm trying to put together a PAR distribution for a Catalyst using the instructions on http://catalyst.infogami.com/cookbook/par

I've added catalyst_par_core(); and catalyst_par(); to Makefile.pl

Then I run "make catalyst_par" but get the following error:

dlarochelle@dlarochelle-laptop:~/dev/pristine/mediacloud/trunk$ make c +atalyst_par include /home/dlarochelle/dev/pristine/mediacloud/trunk/inc/Module/Ins +tall.pm Writing PAR "mediawords.par" make: *** [catalyst_par] Error 2

Digging into this a bit, I see that make is running the following command:

/usr/bin/perl "-Iinc" -Ilib -Minc::Module::Install -MModule::Install:: +Catalyst -e"Catalyst::Module::Install::_catalyst_par( '', 'MediaWords +', { CLASSES => [], PAROPTS => {}, ENGINE => 'CGI', SCRIPT => '', US +AGE => q## } )"

I've tried running the above command manually and it does indeed return an error code but it gives no error message.

Any idea what's going on or even how to debug this? I've googled and searched perlmonks but haven't found an answer.

Thanks in advance!

Replies are listed 'Best First'.
Re: PAR and Catalyst -- make: *** [catalyst_par] Error 2
by Khen1950fx (Canon) on Nov 04, 2010 at 06:56 UTC
    Run perl Makefile.PL first, then make catalyst_par. Your Makefile.PL should look something like this:
    use inc::Module::Install; name 'MediaWords'; all_from 'lib/MediaWords.pm'; requires 'Catalyst::Runtime' => '5.80021'; requires 'Catalyst::Plugin::ConfigLoader'; requires 'Catalyst::Plugin::Static::Simple'; requires 'Catalyst::Action::RenderView'; requires 'Moose'; requires 'namespace::autoclean'; requires 'Config::General'; test_requires 'Test::More' => '0.88'; catalyst_par_core(); catalyst_par(); catalyst_par_engine('CGI'); catalyst_par_options('--verbose=2'); catalyst; install_script glob('script/*.pl'); auto_install; WriteAll;
      I updated my Makefile.PL and I'm first running perl Make.PL, then make catalyst_par Any idea what could going wrong or how I would debug this. I've included my Makefile.PL below.
      use inc::Module::Install; name 'MediaWords'; all_from 'lib/MediaWords.pm'; requires 'Catalyst::Runtime' => '5.80022'; requires 'Catalyst::Plugin::ConfigLoader'; requires 'Catalyst::Plugin::Static::Simple'; requires 'Catalyst::Action::RenderView'; requires 'Catalyst::Plugin::Unicode'; requires 'Catalyst::Plugin::Session::Store::FastMmap'; requires 'Catalyst::Plugin::ConfigLoader'; requires 'Catalyst::Plugin::Config::Defaults'; requires 'Catalyst::Plugin::Static::Simple'; requires 'Catalyst::Plugin::Session'; requires 'Catalyst::Plugin::Session::State::Cookie'; requires 'Catalyst::Plugin::StackTrace'; requires 'YAML'; # This should reflect the config file format you'v +e chosen # See Catalyst::Plugin::ConfigLoader for supported + formats requires 'Moose'; requires 'namespace::autoclean'; requires 'Config::General'; test_requires 'Test::More' => '0.88'; catalyst_par_core(); catalyst_par(); catalyst_par_engine('CGI'); catalyst_par_options('--verbose=2'); catalyst; install_script glob('script/*.pl'); auto_install; WriteAll;
Re: PAR and Catalyst -- make: *** [catalyst_par] Error 2
by Anonymous Monk on Nov 03, 2010 at 19:57 UTC
    Upgrade? Yeah, try upgrading