In my last post about installing Catalyst on Solaris I went to great lengths to install every Perl module, in order, from CPAN. This was a painful process to establish, and just as painful to emulate. The post was updated back in March to include CPAN bundles, which would do most of the hard work for you – but as was pointed out in the comments, it should’ve been a simple case of ‘cpan Catalyst’.
I’ve now managed to get ‘cpan Catalyst’ to work, on Solaris 10, with only a small bit of up-front work. The key appears to be to have the latest version of CPAN available, and from that moment on ‘cpan Catalyst::Devel’ will get you up and running.
To make this all work, follow the local::lib post I wrote recently, then simply do ‘cpan Catalyst::Devel’. If you’ve set ‘prerequisites_policy follow’ in cpan, then for the most part you can leave cpan alone whilst it installs everything. I also tend to export the environment variable PERL_MM_USE_DEFAULT=1, CPAN will pretty much take care of eveything without needing your intervention then. Sometimes the odd modules fails, and needs a solitary ‘cpan …’, or even a ‘perl Makefile.PL’ in it’s build directory, but for the most part you will have a working Catalyst development system at the end. If you do have a module fail to install, try running cpan interactively then doing a ‘look MODULE’ to have a shell opened in the module’s build directory.
If you want to follow the Catalyst tutorial (and if you’re new to Catalyst it’s a great introduction and you should) then you’ll want a few more modules too. Install these:
Test::Pod::Coverage
Catalyst::Manual
DBIx::Class
Catalyst::Plugin::Authentication
Catalyst::Plugin::Authorization::Roles
Catalyst::Plugin::ConfigLoader
Catalyst::Plugin::Session
Catalyst::Plugin::Session::State::Cookie
Catalyst::Plugin::Session::Store::FastMmap – FAIL
Catalyst::Plugin::StackTrace
Catalyst::Plugin::Static::Simple
Template::Timer
Catalyst::Helper::View::TT
DBIx::Class::Schema::Loader (use the development 0.04999_07 version, then current release in CPAN fails make test)
Catalyst::Helper::Model::DBIC::Schema
DBIx::Class::TimeStamp
I’ll update this list of modules as I discover more that are pertinent to the tutorial.
0 Comments.