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

I'm trying to make Pugs on Windows XP. I downloaded Pugs 6.0.11 from CPAN today. I installed the Win32 binary of GHC 6.4. I am running XP Pro SP2.

I successfully ran perl Makefile.PL. When I ran nmake, I got the following error:
cp lib/Perl6/Pugs.pm blib\lib\Perl6\Pugs.pm Makefile(400) : fatal error U1087: cannot have : and :: dependents for + same target Stop. NMAKE : fatal error U1077: 'C:\Windows\system32\cmd.exe' : return code + '0x2' Stop.
Has anyone been able to make Pugs on Windows XP? What do I need to do differently to successfully make Pugs?

Replies are listed 'Best First'.
Re: Error When Making Pugs on Windows XP
by PodMaster (Abbot) on Mar 14, 2005 at 07:47 UTC
      I upgraded ExitUtils::MakeMaker from 6.17 to 6.25. Then I tried making it again. I got a different error that time, but it still did not make. The file was stored in C:\My Documents (a path with spaces in it). I moved it to C:\Pugs (a path without spaces in it) and tried making it one more time. It worked!

      Note to everyone making Pugs on Windows: Place the source files in a path without spaces in it. (By the way, I use ActiveState 5.8.6) I'm looking forward to playing around with Pugs.

        Many of the "tried and tested" tools of Perl have problems with spaces in directory names, most notably CPAN.pm, and Inline::C (not in the category "tried and tested"). I find this is especialy weird, because under Unix file names with whitespace are much longer allowed than in the Win32 world, and given the Unix-centricity of the developers, this should have been an issue a long time ago. It seems that nobody ever went and fixed the issues. I did once try to hunt down all the cases where CPAN.pm fails to do the Right Thing when (not) quoting filenames, but gave up.

        So the moral of this is - don't install Perl below a directory with spaces in its name.

Re: Error When Making Pugs on Windows XP
by eyepopslikeamosquito (Archbishop) on Mar 14, 2005 at 08:41 UTC

    I made Pugs 6.0.11 on Windows XP Pro SP2 today. No problems, all tests passed. I'm using ActiveState Perl 5.8.6. I'm using an earlier version of GHC (6.2.2) -- though your problem looks unrelated to that.

    Update: I built it with the normal: perl Makefile.PL, nmake, nmake test, nmake install.

Re: Error When Making Pugs on Windows XP
by pernod (Chaplain) on Mar 14, 2005 at 08:48 UTC

    Not exactly a solution perhaps, but I'm able to build Pugs from the darcs repository on Windows XP. Running dmake on the generated Makefile gives:

    Skip blib\lib\Perl6\sync.pl (unchanged) cp lib/Perl6/Pugs.pm blib\lib\Perl6\Pugs.pm Skip C:\dev\fun\pugs\blib6\lib\Kwid.pm (unchanged) cp lib/perlkwid.kwid C:\dev\fun\pugs\blib6\lib\perlkwid.kwid dmake.exe: Error -- `C:\dev\fun\pugs\blib6\script\kwid' not found, an +d can't be made dmake.exe: Error code 255, while making 'subdirs'

    Uncommenting the lines:

    #subdirs :: # $(NOECHO)cd ext\Kwid && $(MAKE) -f $(FIRST_MAKEFILE) all $(PASTHR +U)

    and

    clean_subdirs : # -cd ext\Kwid && $(TEST_F) $(FIRST_MAKEFILE) && $(MAKE) clean -cd ext\Pugs-MakeMaker && $(TEST_F) $(FIRST_MAKEFILE) && $(MAKE) c +lean -cd ext\Test && $(TEST_F) $(FIRST_MAKEFILE) && $(MAKE) clean

    lets me build Pugs. I haven't looked into the Makefile.PL to try and solve this, but MakeMaker makes my eyes water, so I think I'll leave it manipulating the generated Makefile ... I'm using ghc 6.2.2, dmake and fetch the code with darcs pull. At least it's possible ;)

    pernod
    --
    Mischief. Mayhem. Soap.

Re: Error When Making Pugs on Windows XP
by jbrugger (Parson) on Mar 14, 2005 at 08:23 UTC
    What version of perl are you using? Activestate, perl for win 32 or a cygwin port?
    If using activestate, look on their site, becouse they have their own version of the perl -MCPAN like command. (i don't know it exactly, since i don't use it, you ought to find it here: http://aspn.activestate.com/ASPN/docs/ActivePerl)
    Ah found it, use ppm.
Re: Error When Making Pugs on Windows XP
by Limbic~Region (Chancellor) on Mar 15, 2005 at 16:37 UTC
    goober99,
    This has been fixed - try the latest trunk. From autrijus - it's caused by space in path and makemaker's inability to deal with them.

    Cheers - L~R