Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^5: Strawberry CPAN: error code 130, while making 'pm_to_blib'

by Anonymous Monk
on Mar 14, 2009 at 19:48 UTC ( [id://750646]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Strawberry CPAN: error code 130, while making 'pm_to_blib'
in thread Strawberry CPAN: error code 130, while making 'pm_to_blib'

I've been suspecting a MakeMaker version issue myself. I have:

perl -v This is perl, v5.10.0 built for MSWin32-x64-multi-thread pmvers ExtUtils::MakeMaker 6.48 pmvers ExtUtils::Install 1.52

I've been using nmake though and I discovered that it will work correctly if I use dmake.

[after perl Makefile.PL NOECHO=] C:\Users\frank\Desktop\cell\Geo-ReadGRIB>nmake Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved. [lots of mkpath, chmod, touch that work...] C:\strawberry\perl\bin\perl.exe -MExtUtils::Install -e "pm_to +_blib({{@ARGV}, 'blib\lib\auto', '')" -- lib/Geo/ReadGRIB/Place.pm blib\lib\Geo\ReadGRIB\Place.pm lib/Geo/Re +adGRIB.html blib\lib\Geo\ReadGRIB.html lib/Geo/ReadGRIB.pm blib\lib\Geo\ReadGRIB.pm lib/Geo/Sample-GRIB/akw. +HTSGW.grb blib\lib\Geo\Sample-GRIB\akw.H TSGW.grb lib/Geo/ReadGRIB/PlaceIterator.pm blib\lib\Geo\ReadGRIB\Plac +eIterator.pm syntax error at -e line 1, next char ) Missing right curly or square bracket at -e line 1, at end of line

It works with dmake and notice and notice the "pm_to_blib({@ARGV}" instead of "pm_to_blib({{@ARGV}"

C:\Users\frank\Desktop\cell\Geo-ReadGRIB>c:\bin\dmake\dmake [lots of mkpath, chmod, touch that work...] C:\strawberry\perl\bin\perl.exe -MExtUtils::Install -e "pm_to_blib({@A +RGV}, 'blib\lib\auto', '')" -- \ lib/Geo/ReadGRIB/Place.pm blib\lib\Geo\ReadGRIB\Place.pm \ lib/Geo/ReadGRIB.html blib\lib\Geo\ReadGRIB.html \ lib/Geo/ReadGRIB.pm blib\lib\Geo\ReadGRIB.pm \ lib/Geo/Sample-GRIB/akw.HTSGW.grb blib\lib\Geo\Sample-GRIB\a +kw.HTSGW.grb \ lib/Geo/ReadGRIB/PlaceIterator.pm blib\lib\Geo\ReadGRIB\Plac +eIterator.pm [no errors. Goes on to make test and install fine]

Thanks to both of you for the helpful suggestions! I'm feeling less bad about this now. I'm not sure how much I can do about it though, other than put a note in the README.

--Frank

Replies are listed 'Best First'.
Re^6: Strawberry CPAN: error code 130, while making 'pm_to_blib'
by syphilis (Archbishop) on Mar 14, 2009 at 22:43 UTC
    I've been using nmake though

    Nmake and dmake have slightly different syntax rules - and, with Strawberry perl, MakeMaker writes a Makefile that conforms to *dmake* syntax, not nmake syntax. It does this because $Config{make} is set to dmake. (You're expected to use the make that $Config{make} specifies.)

    If you want to use nmake with Strawberry Perl, you need to set $Config{make} to nmake. This could be done by by replacing the one occurrence of 'dmake' in lib/Config_heavy.pl with 'nmake'. So long as you have a recent version of nmake (not that crappy old 1.50), that should work ok - but I don't see that it achieves anything useful.

    There's nothing wrong with your ExtUtils::MakeMaker or ExtUtils::Install. They're doing precisely what they're supposed to do :-)

    Cheers,
    Rob
      Thanks again Rob, I appreciate all the useful information.

      This is a great outcome because it means I can put Strawberry Perl back in my path and get on with my work. That's good because I feel more at home with the way cpan works there.

      --Frank Lyon Cox

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-23 22:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found