Subject: | When guessing utility filenames, CPAN doesn't quote the nmake path. |
When first running CPAN on Win32, if you have Visual Studio 2008 Express
Edition compiler installed in the default path, then cpan detects
nmake.exe location correctly, but fails to quote it in Config.pm. So
attempts to install, say, Bundle::CPAN fail miserably since it tries to
run the utility without quoting the name at runtime.
Logic should be added to either quote the name when it is autodetected,
or later when it is used.
as a work around, you can not let the autodetection run or you can quote
the few things that need it after the fact like:
cpan
o conf make '"C:\Program Files\Microsoft Visual Studio
9.0\VC\BIN\nmake.EXE"'
o conf make_install_make_command '"C:\Program Files\Microsoft Visual
Studio 9.0\VC\BIN\nmake.EXE"'
o conf commit
This article is what helped me resolve the problem for my own broken
installation:
http://www.perlmonks.org/?node_id=530600