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

Where is the best place to get Moose and it's dependencies for a CentOS 6.7 setup?

I have a minimal instal of CentOS 6.7 and asking yum to install Moose comes back with a nothing found message.

I have already tried downloading Moose and it's dependencies from various repositories, mainly rpmfind.net but as soon as I put 'use Moose' in my script I got a server 500 error.

After an unsucessful attempt to debug the setup I decided to wipe it clean, re-intall CentOS and ask advice on where to go for the most suitable modules and any other tips and hints on how to reliably install Moose.

Any information gratefully received.

Thanks

Replies are listed 'Best First'.
Re: Moose for CentOS 6
by choroba (Cardinal) on Mar 09, 2016 at 10:15 UTC
    I haven't worked with CentOS, but
    cpan Moose

    has worked for me on any distribution I've ever encountered (Debian, Gentoo, RedHat, Fedora, OpenSUSE, Ubuntu, cygwin).

    ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
Re: Moose for CentOS 6
by Arunbear (Prior) on Mar 09, 2016 at 10:33 UTC
    You could try Magnum Solutions CPAN RPM Repository. I've had success using their Moose RPM for Centos 7, and they say they have packages for Centos 6 too (though these are no longer maintained).
Re: Moose for CentOS 6
by hippo (Archbishop) on Mar 09, 2016 at 11:20 UTC
    I have a minimal instal of CentOS 6.7 and asking yum to install Moose comes back with a nothing found message.

    perl-Moose is in EPEL.

Re: Moose for CentOS 6 (system perl)
by Tanktalus (Canon) on Mar 09, 2016 at 23:47 UTC

    Generally speaking, I recommend not touching the system perl. Instead, I grab the source and set it up to install to /opt/myperl/$version (I have 21 versions right now, but I think some of them are odd numbers, I could get rid of any of those). I even set /opt/myperl to be owned by my user so I can do all this without root privileges (obviously I used root privileges to create /opt/myperl and assign it to my regular user). And then I can install all the modules I want via cpan/cpanm at will. I don't have to worry about versions available in any distribution repository, and can get exactly the levels I want (usually "latest"). It also allows me to move from computer to computer usually by tarring up the appropriate /opt/myperl/version and copying it to my next computer.

    And, most importantly, it allows me to not screw up the system perl :)

      And for those like me who are not quite up to building Perl from the source code, you can check out perllbrew.

Re: Moose for CentOS 6
by OpenSpace (Novice) on Mar 10, 2016 at 09:54 UTC

    Hi All, thanks for your replies.

    I have been looking at PerlBrew and think that this is probably the most reliable way to go.

    For those looking to set up Moose on Centos 7 I found this page which provides modules for Moose and all it's dependencies; http://pkgs.org/centos-7/epel-x86_64/perl-Moose-2.1005-1.el7.x86_64.rpm.html

    Thanks for your help