in reply to Re^2: perl.exe Makefile.PL fails to create makefile
in thread perl.exe Makefile.PL fails to create makefile

Corion's hint seems to be the one! Thanks, Corion. Now install progresses to running the tests, but fails at :

'C:\Program' is not recognized as an internal or external command,oper +able program or batch file.
I suppose the string needs to be put in quotes someplace - which place ? Is it in MyConfig.pm file in .cpan ?

Replies are listed 'Best First'.
Re^4: perl.exe Makefile.PL fails to create makefile
by agentsmith (Initiate) on Mar 26, 2013 at 12:10 UTC

    Progress : put the C:\Program File\....\nmake.exe string in quotes , in MyConfig.pm file , now installed YAML successfully.

    Trying JSON::XS, which throws error :

    'pl2bat.bat' is not recognized as an internal or external command,oper +able program or batch file.
    Trying with bin dir appended to %PATH%

    UPDATE: JSON::XS and JSON installed successfully.

    Summary : 1. Strawberry perl had set environment variables which affected my instance of perl. 2. MyConfig.pm file isn't set right by default for Windows paths which often contain spaces. Need to put such path strings in quotes. 3. Need to run vcvars32.bat and ensure perl/bin is in %PATH%

    Thanks to all monks!

Re^4: perl.exe Makefile.PL fails to create makefile
by Anonymous Monk on Mar 26, 2013 at 11:01 UTC

    I suppose the string needs to be put in quotes someplace - which place ? Is it in MyConfig.pm file in .cpan ?

    Well, I've seen that before in a few , but I don't recall from memory off the top of my head where/what/how

    Maybe  cpan[1]> o conf or whatever

    Maybe update %userprofile% and other vars to use shortnames if you've got that configured

    Maybe patch path in pl2bat ... Re: exec not working?

    OTOH, I don't think cpanp will have problem with it, I prefer cpanp