Avatar of rbwin
rbwin
 asked on

I installed ruby186-27_rc2.on windows xp and how get an error ruby is not recognized as an internal or external command operable program or batch file.

I have installed ruby186-27_rc2.exe on windows XP. I have installed it as user with admin permissions, and as the administrator. I uninstalled it program completely removing all entries from registry. removing ruby directory and making sure that all entries are removed from environment. I have tried this several times, Each time I install it it appears to install correctly, it is in the environment path but I continue to get the following error "ruby is not recognized as an internal or external command operable program or batch file.
ruby-commands-don-t-work.doc
Ruby

Avatar of undefined
Last Comment
rbwin

8/22/2022 - Mon
SOLUTION
wesgarrison

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
rbwin

ASKER
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Administrator>path
PATH=C:\Ruby\bin;C:\Program Files\Liquid Technologies\Liquid XML Studio 2009\Xml
DataBinder7\Redist7\cpp\win32\bin;C:\Program Files\QuickTime\QTSystem\;C:\Progra
m Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Microsoft SQL Serv
er\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Progra
m Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\
90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Co
mmon7\IDE\PrivateAssemblies\;C:\Program Files\Microsoft SQL Server\100\Tools\Bin
n\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Microsof
t SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visu
al Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\WINDOWS\system32\WindowsPowerShe
ll\v1.0;C:\Program Files\VMware\Infrastructure\VIToolkitForWindows\Scripts;C:\Pr
ogram Files\Pinnacle\Studio 11;C:\Program Files\Pinnacle\Studio 11\Plugins;;C:\P
rogram Files\e\cmd;C:\Program Files\Pinnacle\Shared Files;C:\Program Files\Pinna
cle\Shared Files\Filter

C:\Documents and Settings\Administrator>




SOLUTION
wesgarrison

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
rbwin

ASKER
I have resoled that problem. I have ruby working correctly, it turned out the problem was the PATHEXT somehow I had deleted everything but RB & RBW, so once that was fixed I was in good shape.
However being the inexperienced person that I am I have now moved on to a different problem. I will attach the text file that I am trying to read with the script and paste the script below. If you have time to look at it I would appreciate it. Basically it looks as if it recognizes the text file but does not read or display the contents.

my_path = "C:\\Ruby\\Text\\"

warnings  = 0
error = 0
 
d = Dir.new(my_path)

d.each do |fl|
   unless fl == '.' or fl == '..' then
 puts my_path + fl
  File.open(my_path + fl, "r").each do |line|
    if line =~ /ERROR/ then
      error += 1
    elsif line =~ /WARNING/ then
       warning += 1
    end
   end
   
  end
end
puts warning.to_s
puts error.to_s
log-file-20090221-041817.txt
SOLUTION
wesgarrison

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
rbwin

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck