Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

nmake expanded command line too long

by mnooning (Beadle)
on Nov 26, 2006 at 06:12 UTC ( #586075=perlquestion: print w/replies, xml ) Need Help??
mnooning has asked for the wisdom of the Perl Monks concerning the following question:


I installed ActiveState Perl 5.8.8 and now I am installing modules.
nmake.exe works quite nicely. Usually. When I tried
to install Tk-804.027, nmake choked with this message

NMAKE : fatal error U1095: expanded command line 'ar -ru < removed huge list of file names > ' too long

Others seem to be experiencing this with other big modules, and with other
languages. The best fix seems to be to upgrade to nmake version 7.10.
I am using version 1.5 now. Unfortunately, neither the article authors
nor Microsoft say where to find it, and searching the web does not
seem to help.

Any ideas?

Replies are listed 'Best First'.
Re: nmake expanded command line too long
by syphilis (Chancellor) on Nov 26, 2006 at 08:46 UTC
    Yep - 1.5 is pretty crappy.
    I believe you're using the MinGW compiler - you could consider switching to dmake available at dmake should also work fine with the MS compilers, ftm). Actually, that CPAN version of dmake is more recent than what I'm using ... I must update.

    Just install as per the instructions in the readme. My crystal ball also tells me that you're using ExtUtils::FakeConfig with ActivePerl. That being so, you'll need to reinstall EU::FC so that it uses dmake instead.

    The version of nmake you were asking about is available somewhere on the MS website (though I don't have a link) as part of one of the packages (I don't know which) that makes up their free command line compiler. In the meantime, don't be surprised if some kind soul emails you a copy of nmake-7.0.

    Have you considered trying Strawberry perl ? It's built using the MinGW compiler - and both the MinGW compiler and dmake ship with it. By installing PPM you can also then install the ppm packages that are available (if you want to).

    Or maybe even build perl yourself from source using MinGW and dmake ... it's not that difficult.

    Update: Actually, with either a decent version of nmake (ie 7.0) or dmake, you shouldn't need to use ExtUtils::FakeConfig with recent versions of ActivePerl - though I haven't personally tested wrt Tk. There's a good chance it would build successfully with just 'perl Makefile.PL', '*make test', and '*make install'.
      I had the same problem. Getting a newer version of NMake fixed it. Seems like you can't get a standalone version of NMake newer than the 1.5 (every site links to this old download). Fortunately you may download for example a recent Visual Studio Express (which is a free download) and get NMake from here (it's then located in <visual_install_directory\VC\bin\nmake.exe>). Hope this will Help. For your information, I got nmake version "9.00.30729.01" from Visual Studio Express 9.
Re: nmake expanded command line too long
by bingos (Vicar) on Nov 26, 2006 at 13:04 UTC

    The README.win32 that comes with perl-5.8.8 has good guide to setting up various compiler environments etc. for the purposes of compiling perl on MSWin32, but the advice will work for compiling perl modules as well.

    On my machine, NMAKE.EXE appears in the Bin folder of the Platform SDK, if that helps.

Re: nmake expanded command line too long
by rblasch (Monk) on Nov 26, 2006 at 16:22 UTC
Re: nmake expanded command line too long
by Limbic~Region (Chancellor) on Nov 26, 2006 at 15:52 UTC
    If you can find someone with the 7.x version of the nmake.exe I would suggest that. You only need the executable and no other files. It is available from Microsoft in the MSVC toolkit if you can't find anyone. I do want to point out there are other alternatives as mentioned in this thread (dmake and MinGW).

    I thought AS shipped with Tk? Even if it doesn't ship with the most up to date version, ppm should be able to find a precompiled version of what you want. That is of course if you are still unsuccessful at compiling it yourself.

    Cheers - L~R

Re: nmake expanded command line too long
by mnooning (Beadle) on Nov 27, 2006 at 15:35 UTC
    Oh, my! With the new ppm, I can see that Tk is already installed.
    Yes, it really does come with perl 5.8.8. With the newest patch -r6,

    In the future, with each new perl, I'll look to see what needs
    Still, some kind soul emailed me nmake version 7.10, which I need
    anyway. Thanks Sisyphus.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://586075]
Approved by davido
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2018-05-27 20:10 GMT
Find Nodes?
    Voting Booth?