2011
08.28
08.28
If you got the error “CPAN – ‘cl’ is not recognized as an internal or external command” while trying to install a PERL module on XAMPP install on Windows, here are the steps the fix the issue:
- Install Visual Studio Express on the machine (to provide the tool chain)
- Add the folllwing line at to xampp_shell.bat at the end of the setenv seciotn (fix the path if requiered)
call %comspec% /k “C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat” x86 - Start the XAMPP shell and enter CPAN
- Enter
o conf init - Edit the file C:\XAMPP\Perl\lib\CPAN\Config.pm and wrap all Vistual Stuiod links with “”
- Close the shell and start again
That’s it
















