Heidegger has asked for the wisdom of the Perl Monks concerning the following question:

Holy monks,

I have encountered the following problem when installing perl modules under Windows with cpan program:

The Microsoft nmake.exe is installed in C:\Program Files\... It has a whitespace in the directory.

I have tried to set the make path throug "cpan> o conf" in many different ways. However, I can't make it work.

Has anyone else encountered this problem? The google search didn't help me. Will I have to reinstall Microsoft Visual Studio? Or can I make it work in some other way?

Thank you

  • Comment on cpan on Windows - make.exe fails with directory white spaces

Replies are listed 'Best First'.
Re: cpan on Windows - make.exe fails with directory white spaces
by grantm (Parson) on May 30, 2003 at 07:23 UTC

    Do you need to specify a full path? I think you can just get away with saying 'nmake.exe' as long as it's in your PATH.

    Update: I just checked my config and my nmake.exe is in C:\Windows and the full path is in CPAN\Config.pm:

    'make' => q[C:\WINDOWS\nmake.EXE],
Re: cpan on Windows - make.exe fails with directory white spaces
by barbie (Deacon) on May 30, 2003 at 08:05 UTC
    In the installation documentation for nmake it actually says to place into your c:\Windows\System32 directory (or appropriate for your flavour of Windows). This will then be automatically in your PATH and you need only type nmake to run it.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Barbie
    Birmingham Perl Mongers
    Web Site: http://birmingham.pm.org/
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Re: cpan on Windows - make.exe fails with directory white spaces
by Heidegger (Hermit) on May 30, 2003 at 07:37 UTC
    Thank you - like you just told me, I have specified the make as nmake.exe and it found it, cause it was on my %Path% variable.