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

Hi All,

I installed perl package and Catalyst. I have done this so many times I can almost do it my sleep, but I still go by a
check list. However, for this new project, after installing all the Perl packages, with no failures, I ran into an issue trying
to start the services.

The logs indicate that it can't locate Moose.pm. So, try installing Moose using cpanm, as I do with other Perl packages,
except it bails out on installation. It states:

Installing the dependencies failed: Installed version (0.009) of CPAN::Meta::Check is not in range '0.011',
Installed version (1.41) of List::Util is not in range '1.45',
Installed version (0.002) of Devel::OverloadInfo is not in range '0.005',
Installed version (2.00) of Devel::StackTrace is not in range '2.03',
Installed version (0.12) of Sub::Name is not in range '0.20',
Installed version (0.001) of Module::Runtime::Conflicts is not in range '0.002'

Has anyone encounter this issue before? Were you able to resolve it? If yes, can you help me with this issue?

Also note, I use local::lib to install the Perl Packages into my application directory.

Thanks!

Replies are listed 'Best First'.
Re: Perl Package Not In Range
by swl (Prior) on Apr 23, 2020 at 05:33 UTC

    Are you using the perl binary you expect?

    # assuming you are on *nix perl -V which -a perl
Re: Perl Package Not In Range
by marto (Cardinal) on Apr 23, 2020 at 07:59 UTC

    Can you post the output of cpanm -vvv Moose, did you specify -l or --local-lib or if you rely on environment variables are they still set? Are you sure you have a working c compiler available on this system?

Re: Perl Package Not In Range
by haj (Vicar) on Apr 23, 2020 at 21:33 UTC

    The following two points raise a suspicion:

    I have done this so many times I can almost do it my sleep
    Also note, I use local::lib to install the Perl Packages into my application directory.

    If you have installed or are running a new version of Perl on a system where Perl packages reside in your application directory, then this application directory might contain outdated stuff. Try upgrading the modules in your application directories. Modules with XS components might need to be re-installed anyway - since they need to link to the current version of Perl.