Setting Windows ruby environment paths?

Hi all,

I installed Ruby using rubyinstaller.org but afterwards Windows cannot
recognize and run .rb files. I think the paths didn't get set by the
installer.

Does anyone have the list of paths I need to add to Windows?

Thanks!
Adam

···

--
Posted via http://www.ruby-forum.com/.

this might help

···

On Wed, Oct 20, 2010 at 12:15 PM, Adam Mi <adammil2000@gmail.com> wrote:

Hi all,

I installed Ruby using rubyinstaller.org but afterwards Windows cannot
recognize and run .rb files. I think the paths didn't get set by the
installer.

Does anyone have the list of paths I need to add to Windows?

Thanks!
Adam

--
Posted via http://www.ruby-forum.com/\.

--
Kind Regards,
Rajinder Yadav | http://DevMentor.org | Do Good! - Share Freely

As far as i can remember it does update the windows path. If you
installed to c:\ruby192 then c:\ruby192\bin should be in the path
You can check echo the path in cmd.exe (Command prompt)
echo %Path%

Can test in cmd.exe using the following which will give you the ruby
version
ruby -v

Remember you normally use ruby to run a .rb file so should be able to
run if ruby is on the path using the following from the shell
ruby app.rb

Pat

···

--
Posted via http://www.ruby-forum.com/.

RubyInstaller by default will not associate the .rb scripts or add
Ruby to your PATH. You need to check the two boxes during installation
that tells you "associated .rb and .rbw" and "Add Ruby to the PATH"

You can install over your old installlation and check these.

Please remember to close any existing command prompt Window as PATH
changes do not propagate inside them.

···

On Oct 20, 1:15 pm, Adam Mi <adammil2...@gmail.com> wrote:

Hi all,

I installed Ruby using rubyinstaller.org but afterwards Windows cannot
recognize and run .rb files. I think the paths didn't get set by the
installer.

Does anyone have the list of paths I need to add to Windows?

--
Luis Lavena