CatInABox doc updates (thanks claco!)
[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
9b0ec7a1 33Available at L<http://www.shadowcatsystems.co.uk/static/cat-install>,
34C<cat-install> can be a quick and painless way to get Catalyst up and
35running on your system. Just download the script from the link above
36and type C<perl cat-install>. This script automates the process of
37installing Catalyst itself and its dependencies, with bits of overriding
38so that the process does not require user interaction.
4d583dd8 39
40=item *
41
42Chris Laco's CatInABox
43
9b0ec7a1 44CatInABox is a complete version of Catalyst that is installed locally on
45your system, so that you don't need to go through the effort of doing a
46full install. Simply download the tarball from
64ccd8a8 47L<http://handelframework.com/downloads/CatInABox.tar.gz> and unpack it
48on your machine. Depending on your OS platform, either run C<start.bat>
9b0ec7a1 49or C<start.sh> to set your bin/PERLLIB paths. This tarball contains
50everything needed to try out Catalyst including Catalyst itself,
51Template Toolkit, several Authentication modules, StackTrace, and a few
52other plugins.
53
54A special Win32 version is available upon request that contains many
55more plugins and pre-compiled modules, including DBIx::Class, DBI,
56SQLite, and Session support. If you are interested in this version,
57please send e-mail to C<claco@chrislaco.com>.
4d583dd8 58
59=item *
60
61Pre-Built VMWare Images
62
64ccd8a8 63Under the VMWare community program, work is ongoing to develop a number
64of VMWare images where an entire Catalyst development environment has
65already been installed, complete with database engines and a full
66complement of Catalyst plugins.
4d583dd8 67
68=back
69
4d583dd8 70=head2 OTHER METHODS
71
64ccd8a8 72In addition to the "all-in-one" approaches mentioned above, there are a
73variety of other installation techniques:
4d583dd8 74
75=over 4
76
77=item *
78
79CPAN
80
64ccd8a8 81The traditional way to install Catalyst is directly from CPAN using
82C<Task::Catalyst> bundle:
4d583dd8 83
64ccd8a8 84 $ perl -MCPAN -e 'install Task::Catalyst'
4d583dd8 85
64ccd8a8 86Unless you have a particularly complete set of Perl modules already
87installed, be prepared for a large number of nested dependencies.
4d583dd8 88
89=item *
90
91Gentoo Linux
92
64ccd8a8 93For users of Gentoo, see
94C<http://gentoo-wiki.com/HOWTO_Catalyst_Framework> for automated
95installations. In short, simply mount the portage overlay and type
96C<emerge catalystframework>.
4d583dd8 97
ca993681 98=item *
4d583dd8 99
100FreeBSD
101
64ccd8a8 102FreeBSD users can get up and running quickly by typing C<cd
ca993681 103/usr/ports/www/p5-Catalyst && make install>, or C<portinstall
104p5-Catalyst> if C<portinstall> is installed on your system.
4d583dd8 105
106=item *
107
108Windows ActivePerl
109
64ccd8a8 110Windows users can take advantage of the PPM tool that comes with
111ActivePerl to jumpstart their Catalyst environment. Directions are
112available at L<http://catalyst.infogami.com/katalytes/cat_on_windows>.
4d583dd8 113
ca993681 114=item *
4d583dd8 115
ca993681 116Subversion Repository
4d583dd8 117
ca993681 118Catalyst uses Subversion for version control. To checkout the latest:
4d583dd8 119
ca993681 120 $ svn co http://dev.catalyst.perl.org/repos/Catalyst/trunk/Catalyst/
4d583dd8 121
122=back
123
ca993681 124B<NOTE:> Although all of the above methods can be used to
125install a base Catalyst system, only the VMWare image is
126likely to have all of the plugins and modules you need to use
127Catalyst properly, and to complete the tutorial. When you
128start the C<script/myapp_server.pl> development server, it
129will tell you about any modules that are missing. To add
130them, type something along the lines of the following
131(C<Catalyst::Model::DBIC::Schema> is used here as a
132representative example):
133
134 # perl -MCPAN -e 'install Catalyst::Model::DBIC::Schema'
135 ...
4d583dd8 136