Home Servers Install perl-Moose on Linux Server

Install perl-Moose on Linux Server


If you were trying to install Perl-Moose on your server then there is chance that you have got any of these errors,

No package perl-Moose available


No package perl(Moose) available

This often comes, when you are trying to install Moose from yum by using,

yum install perl-Moose


yum install 'perl(Moose)'

If this happens, then you can still try to install perl-moose using CPAN command,

perl -MCPAN -e"install Moose"

If this doesn’t work for you then you will need to install Moose from tar package. To fix this and get back to what you were doing proceed as below,

Install Perl, required Compiler and Tools

yum install gcc
yum install 'perl(Digest::HMAC)'
yum install 'perl(Module::Build)'

For Debian server, you can use below command. Rest will be same,

apt-get install build-essential

Pull Moose Perl package, Unzip and Install it

Note: For latest perl-Moose package you can refer to, http://search.cpan.org/dist/Moose/

Issue below commands one by one from shell,

tar xzvvf Moose*
cd Moose*
perl Makefile.PL
make install

And you should be good to go as this should now completely install Perl-Moose on your server.

Image courtesy: Book cover from book of Dave Rolsky, Stevan Little.


  1. Charlie Meson

    November 22, 2015 at 1:39 pm

    This is great. perl -MCPAN -e”install Moose” saved me! Thanks!


Don't hesitate. Comment!

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Check Also

How to Properly Set WordPress Redirect to HTTPS

Installing SSL is easy but making your WordPress site to adapt it and forget HTTP so, your…