Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

nmake expanded command line too long

by mnooning (Sexton)
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:

Hello,

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?

Comment on nmake expanded command line too long
Re: nmake expanded command line too long
by syphilis (Canon) 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 http://search.cpan.org/~shay/dmake-4.7-20061120-SHAY/(though 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.

    Cheers,
    Rob
    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 Limbic~Region (Chancellor) on Nov 26, 2006 at 15:52 UTC
    mnooning,
    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 rblasch (Monk) on Nov 26, 2006 at 16:22 UTC
Re: nmake expanded command line too long
by mnooning (Sexton) 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,
    too!

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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2014-09-18 22:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (125 votes), past polls