[Catalyst] Where are my modules?

Carl Franks fireartist at gmail.com
Thu Mar 17 09:24:06 GMT 2011


On 17 March 2011 09:06, John M. Dlugosz <wxju46gefd at snkmail.com> wrote:
> Figure this out:  perl Makefile.PL tells me I have 6 modules that need to be
> installed.  E.g.
>
> - Catalyst::Plugin::ConfigLoader             ...missing.
> - Catalyst::Plugin::Static::Simple           ...missing.
> - Catalyst::Action::RenderView               ...missing.
>
> However,
>      $ cpan -i Catalyst::Plugin::ConfigLoader
> gives:
>    CPAN: Storable loaded ok (v2.25)
>    Going to read '/home/john/.cpan/Metadata'
>      Database was generated on Wed, 16 Mar 2011 22:27:22 GMT
>    CPAN: Module::CoreList loaded ok (v2.45)
>    Catalyst::Plugin::ConfigLoader is up to date (0.30).
>
> On the other hand,
>    $ perl -MCatalyst::Plugin::ConfigLoader
> gives:
>    Undefined subroutine &Data::Visitor::has called at
> /usr/local/share/perl/5.10.1/Data/Visitor.pm line 21.
>    Compilation failed in require at
> /usr/local/share/perl/5.10.1/Data/Visitor/Callback.pm line 6.
>    BEGIN failed--compilation aborted at
> /usr/local/share/perl/5.10.1/Data/Visitor/Callback.pm line 6.
>    Compilation failed in require at
> /usr/local/share/perl/5.10.1/Catalyst/Plugin/ConfigLoader.pm line 8.
>    BEGIN failed--compilation aborted at
> /usr/local/share/perl/5.10.1/Catalyst/Plugin/ConfigLoader.pm line 8.
>    Compilation failed in require.
>    BEGIN failed--compilation aborted.
>
> 'has' method is undefined?

It looks like cpan installed it, though its dependancies didn't install cleanly.
Makefile.PL fails to require() it, so thinks its not installed.
Try installing Data::Visitor - and check cpan's output for errors.
If that still doesn't work, force install the listed modules:
    cpan i -f Catalyst::Plugin::ConfigLoader

I know in the past cpan would continue to install modules, even if
their prereqs failed - I can't remember if this was fixed by a cpan
upgrade or a cpan config setting.

Carl



More information about the Catalyst mailing list