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

I'm trying to install PDL in WindowsXP sp2 with Active perl v5.10
I get the following message when I enter the command Nmake
NMAKE : fatal error U1095: expanded command line '@ C:\Perl\bin\perl.e +xe -MExtUtils::Install -e "pm_to_blib({@ARGV}, '..\..\..\blib\lib\aut +o', '')" -- stairs9.fits ..\..\..\blib\lib\PDL\Graphics\LUT\tables/s +tairs9.fits random3.fits ..\..\..\blib\lib\PDL\Graphics\LUT\tables/r +andom3.fits ramp.f Stop. NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code + '0x2' Stop. NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code + '0x2' Stop. NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code + '0x2' Stop.

help me to install PDL on windows XP
jey

Replies are listed 'Best First'.
Re: NMAKE : fatal error U1095
by dHarry (Abbot) on Sep 11, 2008 at 10:18 UTC
Re: NMAKE : fatal error U1095
by syphilis (Archbishop) on Sep 11, 2008 at 10:58 UTC
    I've built PDL with nmake (though I usually use dmake) and I've never struck anything like what you're getting.

    Firstly, which version of PDL are you trying to install ? (I assume it's version 2.4.3 from CPAN ... please correct me if that's not the case.)

    Secondly, which version of nmake are you running ? (Run nmake /P and look for _NMAKE_VER near the beginning. Alternatively, there was probably some output that told you the version when you ran 'nmake'.) There's an old version of nmake readily downloadable on the internet that's not suitable for building PDL (or many other modules, for that matter) ... I think it reports as version 1.5, but I could be way off.

    Thirdly, which C compiler (and version of that compiler) are you using ? (If your using Visual Studio, did the 'nmake' that you're using ship with that edition of Visual Studio.)

    As a general observation, you'll get much better functionality out of your build of PDL if you have the MinGW compiler - unless you also already have f2c and associated libraries libi77.lib and libf77.lib.

    You'll be hard pressed to improve on the functionality provided by the uwinnipeg ppm package ... and if you *do* improve on that, I would definitley like to know what improvements you made, and how you achieved them :-)
    That said, however, you have every right to build PDL for yourself, and we'll try to help out where we can.

    Cheers,
    Rob
      my PDL version is PDL 2.4.3
      NMAKE is 1.5
      MinGW 3.1.0
      as well I have Visual Studio.


      thanks
      Jey

        Somewhere in yout Visual Studio directory tree there will be a newer copy of nmake.exe. Copy that over the copy of nmake.exe v1.5 that cpan downloaded. From mmeory, I think cpan puts it in your x:\perl\bin directory, but it's been a while.


        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.
Re: NMAKE : fatal error U1095
by BrowserUk (Patriarch) on Sep 11, 2008 at 10:42 UTC

    Which version of nmake do you have? (Just type nmake, it's in the banner.)

    Because if you have the ancient version that the cpan module insists on downloading, even if you have a later version available and in your path, but just not in some random selection of places they cpan authors decided to look, you'd best discard it and get a later one. (Or overwrite the old version with a copy of the new one if you already have it).


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
Re: NMAKE : fatal error U1095
by Anonymous Monk on Sep 11, 2008 at 10:16 UTC