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.

[edit] CPAN

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

[edit] Tarball

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

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

[edit] Debian (and Debian-derived systems)

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
Personal tools
Namespaces
Variants
Actions
Navigation
Community
Toolbox
Sister projects
Print/export