tphyahoo has asked for the wisdom of the Perl Monks concerning the following question:

Merciful monks, I am struggling up the catalyst learning curve, on which I will be basing a magical multiuser accounting package that will make the world a better place. (If it ever makes it out of vaporware -:)

I am developing on windows, with active state.

Got a scaffolded server configured following sri's demo. Now I want to try the catalyst OOTB login, Catalyst::Plugin::Authentication::CDBI.

Problem is, that requires (a couple links down the dependency chain) Cache::FastMmap. No ppm for that, and when I tried the usually magical

perl makefile.pl nmake test nmake install
I got
Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved. cl -c -I. -nologo -Gf -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOL +E -DNO_STRICT -DHAVE_DES_FCRYPT -DNO_HASH_SEED -DPERL_IMPLICIT_CONTEX +T -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DND +EBUG -O1 -DVERSION=\"1.09\" -DXS_VERSION=\"1.09\" "-IC:\Perl\lib +\CORE" CImpl.c Der Befehl "cl" ist entweder falsch geschrieben oder konnte nicht gefunden werden. NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code + '0x1' Stop. NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code + '0x2' Stop.
What is cl, and how do I get this to work on windows?

I have installed the MinGW-4.1.1.exe and MSYS-1.0.10.exe packages from the mingw download site, but I admit I don't really know what to do with them. When I ran msys (or should that have been mingw?) and tried with nmake, I got the same error as before. When I tried with make instead of nmake I got

Benutzername@ALLISON /d/Cache-FastMmap-1.09/Cache-FastMmap-1.09 $ make test Makefile:336: *** multiple target patterns. Stop.
I have also read nmake says "cl" is not recognized, where another monk had a similar problem, but the remedies tachyon suggested there (ppm install or get mingw) haven't worked so far.

Helllp!

Or should I just forget about getting Catalyst::Plugin::Authentication::CDBI working on windows, stiffen my upper lip, and roll my own authentication?

Replies are listed 'Best First'.
Re: trouble installing Catalyst helper Authentication::CDBI on windows (cl fails)
by Joost (Canon) on Aug 30, 2005 at 11:13 UTC
Re: trouble installing Catalyst helper Authentication::CDBI on windows (cl fails)
by haoess (Curate) on Aug 30, 2005 at 11:44 UTC
Re: trouble installing Catalyst helper Authentication::CDBI on windows (cl fails)
by jk2addict (Chaplain) on Aug 30, 2005 at 13:20 UTC

    If none of the above works out for you, I've got VC6++ at home that I use to compile most of my perl stuff on windows. I'm not a c person, but I'll take a crack at compiling Cache::FastMmap and stuff it into a ppm for you if it works.

      Thanks for the answers, everyone -- I'm feeling a lot better. Look forward to trying these things when I get off the day job. j2kaddict, if I am still having problems then I will let you know. Long live the monastery!
Re: trouble installing Catalyst helper Authentication::CDBI on windows (cl fails)
by shenme (Priest) on Aug 30, 2005 at 16:00 UTC
    Sometimes the best way to fix a problem is to avoid it altogether. Indeed, Cache::FastMmap is not to be found on Windows Perl's, so don't use that.

    I found this on the Catalyst maillist archives. Switch out the use of one Cache::Cache module for another that works on Windows, in this case Cache::FileCache. Here is the change to Catalyst::Plugin::Authentication::FastMmap in patch form:

    --- FastMmap.pm-0.12 2005-05-25 17:33:18.000000000 -0500 +++ FastMmap.pm 2005-07-21 20:15:07.527036800 -0500 @@ -3,7 +3,8 @@ use strict; use base qw/Class::Data::Inheritable Class::Accessor::Fast/; use NEXT; -use Cache::FastMmap; +#use Cache::FastMmap; +use Cache::FileCache; use Digest::MD5; use URI; use URI::Find; @@ -124,9 +125,12 @@ $self->config->{session}->{rewrite} ||= 0; $self->_session( - Cache::FastMmap->new( + # Cache::FastMmap->new( + Cache::FileCache->new( + { share_file => $self->config->{session}->{storage}, expire_time => $self->config->{session}->{expires} + } ) );
      You know, I have been trying to figure out how to search that list all day. Perhaps I should have posted to catalyst rather than perlmonks, but I found the "mailman" list interface forbidding.

      I see now that, though there is no search interface that I can discern, it seems to be crawled pretty well by google, so

      http://www.google.de/search?hl=de&q=site%3Alists.rawmode.org+catalyst+fastmmap+windows&btnG=Suche&meta=

      for instance could have gotten me closer to the info I needed. I am just so used to the ease of google groups / perlmonks... spoiled I guess. Oh well.

        The Catalyst list has a searchable archive at GMANE.

        You can also read the #catalyst IRC scrollback at loglibrary. The IRC chatter has been even more helpful to me than the mailing list.