Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

How do folks build modules under cygwin perl?

by gregor-e (Beadle)
on Feb 20, 2009 at 22:39 UTC ( [id://745457]=perlquestion: print w/replies, xml ) Need Help??

gregor-e has asked for the wisdom of the Perl Monks concerning the following question:

I installed a fresh copy of the latest cygwin on a new laptop. I grabbed a copy of nmake.exe from Microsoft, since that's the usual make one needs, and put it in the System32 folder. I fired up CPAN and tried to install Flickr::API. Along the way, it choked, saying:
NMAKE : fatal error U1073: don't know how to make '/usr/lib/perl5/5.10 +/i686-cygwin/Config.pm'
Okay, so this looks like nmake, a DOS utility, is befuddled by a cygwin pseudo-UNIX path. Now, surely there must be zillions of people using perl under cygwin, adding modules, etc. How do y'all do it? Is there a proper make utility for cygwin perl other than nmake that I should be using instead?

Replies are listed 'Best First'.
Re: How do folks build modules under cygwin perl?
by roboticus (Chancellor) on Feb 20, 2009 at 23:42 UTC
    gregor-e:

    I downloaded the gcc packages, and then in a bash shell I do the usual:

    perl Makefile.pl make make test make install

    or

    perl Build.PL ./Build ./Build test ./Build install

    It works pretty well. Most things just work:

    DBI-1.601, DBD-ODBC-1.15_2, OLE::Storage_Lite, Parse::RecDescent, Spreadsheet::WriteExcel, Unicode::Map, IO-stringy-2.110, Spreadsheet::ParseExcel, List-MoreUtils-0.22, SQL-Statement-1.15, Convert-EBCDIC-0.06, Class-Accessor-0.31, Params-Validate-0.91, Data-Dump-1.08, Test-Simple-0.80, Test-Exception-0.27, Array-Compare-1.16, Tree-DAG_Node-1.06, Test-Warn-0.10, Tree-1.01 and many others.

    ...roboticus
Re: How do folks build modules under cygwin perl?
by Anonymous Monk on Feb 20, 2009 at 22:51 UTC
    nmake can be made to work by using win32 path names, I've done it. However, the easiest way to proceed is gnu make and gcc
      Thanks. I had installed gcc but not make. (You'd think make would just automatically come with gcc, wouldn't you?)
Re: How do folks build modules under cygwin perl?
by misterwhipple (Monk) on Feb 21, 2009 at 01:03 UTC
    Some modules require g++ to build, which was not installed in cygwin automatically with gcc, best I can remember.

    cat >~/.sig </dev/interesting

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://745457]
Approved by kennethk
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2024-04-25 19:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found