Programming with Moose/Obtaining Moose

< Programming with Moose

There are numerous way you can obtain the latest version of Moose. Some of the more popular methods are listed below.


Using the CPAN module:

perl -MCPAN -e"install Moose"

Using the interactive shell, in non-interactive mode:

cpan Moose

To use the shell in interactive mode simply:

cpan[1]> install Moose


Download from

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

Debian (and Debian-derived systems)Edit

If you're running Debian, or a Debian-based system, your package manager can install Moose. Using this method has advantages and disadvantages. The disadvantage is that you will not always be running the bleeding edge of Moose, and not all Moose extensions are packaged for Debian. The advantages are that you get quality control, security tracking, and ease of installation with Debian's APT.

To install Moose on a Debian system;

apt-get install libmoose-perl