If you did a force-install at some point in the past, e.g. to get Catalyst::Plugin::ConfigLoader installed, then you may have skipped some dependencies. Wiser folks than me can probably tell you how to get CPAN to recover to a more stable state, but it sounds like you'll have to follow the dependency chain by hand until then. That is, each "missing" module will require you to do a "cpan Mod::Here" to get it up to snuff.
You may be doing this already, but if you use "lib::local" instead of your system perl libraries as root (or via sudo) then A) you won't break your system perl, 2) you won't need root permissions to update your library and 3) if the muses smile at you just right you might be able to migrate your whole cpan library to a new system when the time comes, with a simple file-copy. http://perl.jonallen.info/writing/articles/install-perl-modules-without-root Something we're running into is when Cpan module dependencies don't work out right, after migrating a project to a new system. Instead of being up and running in a matter of minutes (or hours if lots of compiling is needed) it's turning into a matter of days, sometimes weeks, to get all the dependencies straightened out. :( On Thu, Mar 17, 2011 at 4:24 AM, Carl Franks <[email protected]> wrote: > On 17 March 2011 09:06, John M. Dlugosz <[email protected]> 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 > > _______________________________________________ > List: [email protected] > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst > Searchable archive: > http://www.mail-archive.com/[email protected]/ > Dev site: http://dev.catalyst.perl.org/ > -- The first step towards getting somewhere is to decide that you are not going to stay where you are. -- J.P.Morgan
_______________________________________________ List: [email protected] Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
