Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^5: cpan fails when MKS installed on Windows (HKCU\Software\Microsoft\Command Processor)

by syphilis (Chancellor)
on Apr 08, 2013 at 01:05 UTC ( #1027407=note: print w/replies, xml ) Need Help??


in reply to Re^4: cpan fails when MKS installed on Windows (HKCU\Software\Microsoft\Command Processor)
in thread [Solved]: cpan fails when MKS installed on Windows

everything is affected, its a registry hack

Clearly $^X is not affected.
I think the OP's problem might have no relation to the presence of MKS. Instead, it could be the Makefile that ExtUtils:MakeMaker has generated - which perhaps (or not) goes back to a %Config setting.

Over the years, I've seen similar errors where MKS is *not* present, but I don't think I've ever quite got on top of how the error arises, or precisely what to do to fix it.

I'm referring to a problem that turns up from time to time with DIRFILESEP.
If the OP is still interested, he might verify that the Makefile generated during the building of the module contains:
DIRFILESEP = \\
Cheers,
Rob
  • Comment on Re^5: cpan fails when MKS installed on Windows (HKCU\Software\Microsoft\Command Processor)
  • Download Code

Replies are listed 'Best First'.
Re^6: cpan fails when MKS installed on Windows (HKCU\Software\Microsoft\Command Processor disable with cmd /d /c)
by Anonymous Monk on Apr 08, 2013 at 01:46 UTC

    Clearly $^X is not affected. ...

    $^X is not cmd.exe

    makemaker/dmake/cpan... all call the shell for one reason or another

    The shell is cmd.exe

    The shell is

    perl -V:sh sh='cmd /x /c';

    You could change it to "cmd /d /c" or "cmd /e:off /c" or some such, but I've never seen it used in real life

    It might work

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1027407]
help
Chatterbox?
[Discipulus]: why perl -e 'print q(\'a string\'),"\n"' gives -bash: syntax error near unexpected token `)' ??
[Discipulus]: i'm not escaping correctly?
[moritz]: Discipulus] iirc bash doesn't let you escape ' with \
[moritz]: not inside a single-qouted string at least
[moritz]: echo 'a'\''

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2017-11-24 10:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (346 votes). Check out past polls.

    Notices?