[Catalyst] Successful installation of Catalyst under Cygwin
samwyse
samwyse at gmail.com
Mon Jun 6 21:55:00 CEST 2005
On 6/6/05, Andy Grundman <andy at hybridized.org> wrote:
> The problem module is Cache::FastMmap, which won't install on Windows.
> You can still use C::P::Session::FastMmap with Cache::FileCache. You
> can try it by applying this patch:
>
> http://www.hybridized.org/catalyst/Session-FastMmap-win32.patch
>
> We are promised some new session modules real soon now, that should make
> this a lot easier. :)
For the benefit of others, here's what I wound up doing to make things
finally work, with a few nagging questions at the end.
cpan> get Bundle::Catalyst
### in another window, I applied the above patch to
### ~/.cpan/build/Catalyst-Plugin-Session-FastMmap-0.12/FastMmap.pm
cpan> make Bundle::Catalyst
### Everything seems OK
cpan> test Bundle::Catalyst
### This fails with two errors:
### Unlink of existing share file /tmp/sharefile failed: Permission denied
### Error: Can't locate Cache/FileCache.pm in @INC
### so I 'rm /tmp/sharefile' with no problems, and ...
cpan> install Cache::FileCache
cpan> test Bundle::Catalyst
### I still get the unlink message, but otherwise things look good
cpan> install Bundle::Catalyst
### Again, everything looks good, so I flip to the other window and try this:
$ catalyst.pl
Can't locate Catalyst/Helper.pm in @INC (@INC contains: /usr/lib/perl5/5.8/cygwi
n /usr/lib/perl5/5.8 /usr/lib/perl5/site_perl/5.8/cygwin /usr/lib/perl5/site_per
l/5.8 /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/vendor_perl/5.8/cygwin /usr/li
b/perl5/vendor_perl/5.8 /usr/lib/perl5/vendor_perl/5.8 .) at /usr/bin/catalyst.p
l line 9.
BEGIN failed--compilation aborted at /usr/bin/catalyst.pl line 9.
### I flip back to cpan and do this:
cpan> install Catalyst::Helper
### That seems to have done something
$ catalyst.pl
Usage:
catalyst.pl [options] application-name
### Hurray!!!
Q1: Why isn't Catalyst::Helper in Bundle::Catalyst?
Q2: Could Cache::FileCache be also added to the Bundle?
Q3: Could the Bundle be set up so that different caching methods are
installed based on the underlying OS? I don't know exactly how
Bundles work, but the only Bundle/Catalyst.pm that I can find doesn't
have much code in it. Still, isn't there someway to manually override
a method or something?
More information about the Catalyst
mailing list