in reply to CPAN Config question on Win2000

Can you tell us exactly what kind of error you are getting when the CPAN install module tries to access nmake? My first hunch with out any additional info would be that you do not the path to nmake properly defined in your Environment Variables.

To get to Environment Variables in Windows 2K do this:
1) Right Click on My Computer (on your Desktop)
2) Select Properties
3) Select Enivironment Variables
4) Highlight/Select/Click On Path
5) Click Edit
6) If it isn't already there put in the full path to nmake spaces and all where it says 'Variable Value'
7) Click OK

Hope this helps.

Replies are listed 'Best First'.
Re: Re: CPAN Config question on Win2000
by knexus (Hermit) on Sep 01, 2003 at 15:54 UTC
    OK, a solution hit me and it works (apparently), although it may seem odd.

    Read more if you are curious...

    I remembered something odd with how windoze handled the long paths in DOS boxes (older versions, as win2K DOS box works normally). When paths had spaces you could enclose it in quotes, when the path was too long it would chop it off at six characters and append ~1 as below:

    E:\Program Files\Microsoft Visual Studio\VC98\bin becomes

    I entered the path in this fashion in the CPAN config for make and make seems to make ;-)

    <Ammendment>If you need to use this approach make sure you see reply by shenme for more information.

    Use dir /x to get the real short name which "may not" have a ~1.

      Yes, that's the way to do it, with one caveat.   It isn't always "~1".   To be sure of what to use go into the directories concerned and run "dir /X" to see the short names.   When the long names overlap sometimes the short names will end up as things like "CREATE~4.SQL" or even "CRC02D~1.SQL".
        Excellent, I did not know of that trick. I will add that to the list dos/win tidbits. I appreciate the extra info.


Re: Re: CPAN Config question on Win2000
by knexus (Hermit) on Sep 01, 2003 at 15:38 UTC
    Sorry, I should have been more specific on the error:

    cpan> test XML::SemanticDiff
    Running make test 'E:\Program' is not recognized as an internal or external command, operable program or batch file. E:\Program Files\Microsoft Visual Studio\VC98\bin\nmake.exe test -- NOT OK

    I already checked the Environment Vars and they are correct.
    It seems to be a problem with the spaces (at least to me) based on the 'E:\Program' part of the error message.
    I checked the config using: cpan> o conf make
    and I get the correct path and file name.

    <scratch head>