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

Has anyone tried installing libwin32-0.16, using cygwin as the compiler? I know the doc specifies Visual C++ or Borland, but I like the free software...

When I try running the make, I get:

$ make

Makefile:989: *** missing separator. Stop.

The line with @(PM_TO_BLIB) is 989...

Makefile (lines 982 to the end):

# --- MakeMaker pm_to_blib section: pm_to_blib: $(TO_INST_PM) @$(PERL) "-I$(INST_ARCHLIB)" "-I$(INST_LIB)" \ "-I$(PERL_ARCHLIB)" "-I$(PERL_LIB)" -MExtUtils::Install \ -e "pm_to_blib(qw[ <<pmfiles.dat ],'$(INST_LIB)\auto')" $(PM_TO_BLIB) << @$(TOUCH) $@ # --- MakeMaker selfdocument section: # --- MakeMaker postamble section: # End.
Thanks.

Replies are listed 'Best First'.
(tye)Re: libwin32-0.16/cygwin
by tye (Sage) on Nov 10, 2000 at 01:57 UTC

    You need to tell MakeMaker what kind of makefile to generate. If you built your copy of Perl with cygwin, then you shouldn't see this problem.

    If you are using something like ActivePerl, then you need to change some Config.pm settings so MakeMaker will know that you are using cygwin and not MS VC++ (which is what ActiveState used to build ActivePerl).

    Sorry, but I don't know exactly which variable to change nor what to change them to. Grab the source code for Perl and go through the steps of building Perl for cygwin. This will give you a Config.pm that works with cygwin. Then you can compare the two and apply some of the differences to your ActivePerl's Config.pm and try building again.

    You might still run into a few problems since it sounds like libwin32 hasn't been tested with cygwin. But we can probably help you get past those if you run into them.

            - tye (but my friends call me "Tye")
Re: libwin32-0.16/cygwin
by chromatic (Archbishop) on Nov 10, 2000 at 01:47 UTC
    This sounds more like make being picky about a makefile than a Perl issue... but I've seen this where a line doesn't start with whitespace, or, in the case of GNU make, a tab character.

    Try editing the makefile and put a tab at the start of the line in question. Just a guess, not a definitive answer. :)