Programming with Moose/Obtaining Moose

From Wikibooks, open books for an open world
Jump to: navigation, search

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

CPAN[edit]

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
cpan[1]> install Moose

Tarball[edit]

Download from http://search.cpan.org/dist/Moose/.

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