I decided to take a look at Catalyst on Solaris. Having done a bit of work with it on Mac OSX, I discovered it wasn't that easy to get going on Solaris with the stock Perl. Even using cat-install from ShadowCat didn't render the easy result I'd experienced using MacPorts. After a few hours battling with CPAN, I've managed to come up with this list of modules to get Catalyst up and running.

The reader should note this was done on Solaris 10 update 6, on x86 hardware (well, in VMware actually). comments: true tags: catalyst, howto, mvc, perl, solaris

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.


Comments

comments powered by Disqus