in reply to nmake error

Have you tried issuing the command "mkdir c:\" from a command line?


Examine what is said, not who speaks.
Silence betokens consent.
Love the truth but pardon error.

Replies are listed 'Best First'.
Re^2: nmake error
by gwhite (Friar) on Dec 28, 2004 at 00:49 UTC

    yes, and when I put in mkdir c:\mytest it works fine, in the makefile (which results from Makefile.PL) I can't find any instance of c:\: which appears to be what it is choking on. For all of my input directories I did not specify a drive and I have tried slashes in both the windows direction "\" and in the Unix direction "/" with the same results.

    g_White

      The error message you posted certainly makes it look like your trying to execute the command mkdir c:\ which will fail.

      Try adding the /N switch to the nmake command so that you can see what commands are being issued.

      You might also try /I and see if it would build if you ignore the error(s). It doesn't fix things, but at least you would know whether it is just cmd.exe being more pendantic than other shells or something more serious.


      Examine what is said, not who speaks.
      Silence betokens consent.
      Love the truth but pardon error.

        getting somewhere..... now with /N I get:

        NMAKE : fatal error U1095: expanded command line 'C:\my_perl\perl\bin\perl.exe -MExtUtils::Command -e cp [bunch of file names here]`C:\my_perl\perl\bin\perl.exe - MFile::Basename -e 'print dirname $ARGV[0]' blib\bin`/my_code/templates' too long

        /I had no additional affect.

        g_White

      I noticed "C:\>nmake" at the top of your example. It looks as though you're trying to build something in "C:\". This is a bad idea for a variety of reasons, the least of which being that "C:\" usually contains everything on your hard disc, and as result, Makefile.PL will probably end up checking lots and lots of stuff to make sure the MANIFEST file is correct, as you may or may not have noticed.

      My advice would be to move Makefile.PL and everything else to that /mytest directory you just created and try building there instead.

        I have tried in a variety of directories with the same results.

        g_White