If you’re here, you are probably getting an error like this during a gem install on a windows box.
cl -c -nologo -O1 -MD -Zi -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -DHAV
E_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DPERL_MSVCRT_READFIX –
O1 -MD -Zi -DNDEBUG -DVERSION=\”6.4\” -DXS_VERSION=\”6.4\” -IC:\Perl\lib\CO
‘cl’ is not recognized as an internal or external command,
operable program or batch file.
NMAKE : U1077:
The fix is easy if you have visual studio or the .NET SDK installed.
Now, do a search on your local machine for ‘cl.exe’
I use the phenomenal windows desktop search engine locate32), here were the results I got.
Now all I had to do was use the nifty windows Path Editor “Path Ed” to add one of those paths to the system path variable
and that error goes away.
Only to be replaced by an even more cryptic one in my case
(I was trying to install passenger … I know I can’t, but I thought I’d try)