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

Re: CPAN Config question on Win2000

by PERLscienceman (Curate)
on Sep 01, 2003 at 14:55 UTC ( #288142=note: print w/ replies, xml ) Need Help??


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.


Comment on Re: CPAN Config question on Win2000
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>

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
    E:\Progra~1\Micros~1\VC98\bin

    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.

        Thanks.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2014-09-19 00:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (128 votes), past polls