From: Shahin Kordasti Date: 2009-07-14T18:16:58+09:00 Subject: Re: SystemTimer in windows Roger Pack wrote: > >> Tried Cygwin but I get the error that cannot find cl command. Cygwin >> uses gcc to compile C but not sure how I can tell the gem utility to do >> that instead of cl. > > Double check your path carefully to make sure it is using only cygwin > gcc/cl etc. > > It should compile at least: > > packrd@ws-packrd ~ ruby -v > ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-cygwin] > packrd@ws-packrd ~ > $ gem install SystemTimer > Building native extensions. This could take a while... > Successfully installed SystemTimer-1.1.1 > 1 gem installed > > =r This is what I get: eshakor@drww01 ~ $ ruby -v ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32] eshakor@drww01 ~ $ gem install SystemTimer bash: /cygdrive/c/Ruby/bin/gem: D:/Users/Luis/projects/oss/oci/installer2-trunk/ ruby/bin/ruby.exe^M: bad interpreter: No medium found No idea why it is looking in that path for ruby.exe. My path: PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/Program Files/Java/ jdk1.6.0_14/bin:/cygdrive/c/Ruby/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WI NDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Program Files/TortoiseSVN/bi n:/cygdrive/c/Program Files/MySQL/MySQL Server 5.0/bin:/cygdrive/c/Program Files /Microsoft.NET/SDK/v1.1/Bin So I go to where the ruby.exe is located and explicitly pointing out the gem.bat and get: eshakor@drww01 /cygdrive/c/Ruby/bin $ ./gem.bat install SystemTimer Building native extensions. This could take a while... ERROR: Error installing SystemTimer: ERROR: Failed to build gem native extension. c:/Ruby/bin/ruby.exe extconf.rb install SystemTimer creating Makefile nmake Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved. cl -nologo -I. -Ic:/Ruby/lib/ruby/1.8/i386-mswin32 -Ic:/Ruby/lib/ruby/1. 8/i386-mswin32 -I. -MD -Zi -O2b2xg- -G6 -c -Tcsystem_timer_native.c 'cl' is not recognized as an internal or external command, operable program or batch file. NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x1' Stop. Gem files will remain installed in c:/Ruby/lib/ruby/gems/1.8/gems/SystemTimer-1. 1.1 for inspection. Results logged to c:/Ruby/lib/ruby/gems/1.8/gems/SystemTimer-1.1.1/ext/system_ti mer/gem_make.out It cannot find command cl. So no clue what to do now... any ideas? -- Posted via http://www.ruby-forum.com/.