small tweak to Installation.pod
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Manual / Installation.pod
CommitLineData
ca993681 1head1 NAME
4d583dd8 2
64ccd8a8 3Catalyst::Manual::Installation - Catalyst Installation
4d583dd8 4
4d583dd8 5=head1 DESCRIPTION
6
ca993681 7How to install Catalyst.
4d583dd8 8
ca993681 9=head1 INSTALLATION
4d583dd8 10
ca993681 11On one hand, Catalyst gains immediate power and flexibility
12through its use of CPAN (the Comprehensive Perl Archive
13Network, an enormous global repository containing over 10,000
14free modules). On the other hand, Catalyst's reliance on CPAN
15can complicate initial installations, especially in
16shared-hosting environments where you, the user, do not have
17easy control over what versions other modules are installed.
4d583dd8 18
ca993681 19It is worth stressing that the difficulties found in installing
20Catalyst are caused not by anything intrinsic to Catalyst
21itself, but rather by the interrelated dependencies of a large
22number of required modules.
4d583dd8 23
ca993681 24Fortunately, there are a growing number of methods that can
25dramatically ease this undertaking:
4d583dd8 26
27=over 4
28
29=item *
30
da62e298 31Matt Trout's C<cat-install> script
32
33Available at
34L<http://www.shadowcatsystems.co.uk/static/cat-install>,
35C<cat-install> can be a quick and painless way to get Catalyst
36up and running. Just download the script from the link above
37and type C<perl cat-install>. This script automates the
38process of installing Catalyst itself and its dependencies,
39with bits of overriding so that the process does not require
40user interaction.
4d583dd8 41
42=item *
43
44Chris Laco's CatInABox
45
64ccd8a8 46Download the tarball from
47L<http://handelframework.com/downloads/CatInABox.tar.gz> and unpack it
48on your machine. Depending on your OS platform, either run C<start.bat>
49or C<start.sh>.
4d583dd8 50
51=item *
52
53Pre-Built VMWare Images
54
64ccd8a8 55Under the VMWare community program, work is ongoing to develop a number
56of VMWare images where an entire Catalyst development environment has
57already been installed, complete with database engines and a full
58complement of Catalyst plugins.
4d583dd8 59
60=back
61
4d583dd8 62=head2 OTHER METHODS
63
64ccd8a8 64In addition to the "all-in-one" approaches mentioned above, there are a
65variety of other installation techniques:
4d583dd8 66
67=over 4
68
69=item *
70
71CPAN
72
64ccd8a8 73The traditional way to install Catalyst is directly from CPAN using
74C<Task::Catalyst> bundle:
4d583dd8 75
64ccd8a8 76 $ perl -MCPAN -e 'install Task::Catalyst'
4d583dd8 77
64ccd8a8 78Unless you have a particularly complete set of Perl modules already
79installed, be prepared for a large number of nested dependencies.
4d583dd8 80
81=item *
82
83Gentoo Linux
84
64ccd8a8 85For users of Gentoo, see
86C<http://gentoo-wiki.com/HOWTO_Catalyst_Framework> for automated
87installations. In short, simply mount the portage overlay and type
88C<emerge catalystframework>.
4d583dd8 89
ca993681 90=item *
4d583dd8 91
92FreeBSD
93
64ccd8a8 94FreeBSD users can get up and running quickly by typing C<cd
ca993681 95/usr/ports/www/p5-Catalyst && make install>, or C<portinstall
96p5-Catalyst> if C<portinstall> is installed on your system.
4d583dd8 97
98=item *
99
100Windows ActivePerl
101
64ccd8a8 102Windows users can take advantage of the PPM tool that comes with
103ActivePerl to jumpstart their Catalyst environment. Directions are
104available at L<http://catalyst.infogami.com/katalytes/cat_on_windows>.
4d583dd8 105
ca993681 106=item *
4d583dd8 107
ca993681 108Subversion Repository
4d583dd8 109
ca993681 110Catalyst uses Subversion for version control. To checkout the latest:
4d583dd8 111
ca993681 112 $ svn co http://dev.catalyst.perl.org/repos/Catalyst/trunk/Catalyst/
4d583dd8 113
114=back
115
ca993681 116B<NOTE:> Although all of the above methods can be used to
117install a base Catalyst system, only the VMWare image is
118likely to have all of the plugins and modules you need to use
119Catalyst properly, and to complete the tutorial. When you
120start the C<script/myapp_server.pl> development server, it
121will tell you about any modules that are missing. To add
122them, type something along the lines of the following
123(C<Catalyst::Model::DBIC::Schema> is used here as a
124representative example):
125
126 # perl -MCPAN -e 'install Catalyst::Model::DBIC::Schema'
127 ...
4d583dd8 128