Ruby on Vista

Yesterday I installed Ruby and Ruby on Rails on Vista 32bit using the directions on this site: http://rubyonrails.org/down

so I downloaded the installer, then Gems, then downloaded the rails with Gems.

now I can’t use the Gem or Ruby commands on the command line ... so I assume that something is wrong with the environment variables, but I suggest how to configure them in Vista or what to put. Can anyone help me with this?

+6
ruby ruby-on-rails windows-vista rubygems
source share
3 answers

To set environment variables do this

  • Launch the start menu
  • Right click on Computer and select Properties
  • Click Advanced system settings in the left pane and confirm the UAC prompt
  • Select the Advanced tab (it's third)
  • Click Environment Variables... (bottom)
  • At the top of the window ( User variables for XXX ), either find the entry for PATH , or click "Create" to create the entry.
    If PATH already exists, use half-columns to separate each directory specified in it.
  • Put c:\ruby\bin (change if you installed ruby ​​in another place).
  • Click "OK" many times to close all the windows that we opened.
  • Restart the command line.

gem and ruby and irb should now work. Who said GUI tools are slower than command line tools. pah!

+12
source share

At the command prompt, type "PATH" and then press return, do you see ruby.exe in the PATH environment variable?

If you installed ruby ​​to say 'c: \ ruby', then it will be 'c: \ ruby ​​\ bin \'.

It seems that the path may be absent.

+1
source share

Add your ruby ​​bin directory to the PATH environment variable, go to Control Panel β†’ System β†’ Advanced system settings, then go to the Advanced tab, Environment Variables, then edit the PATH variable and add the path to the ruby ​​install binaries ; C: \ ruby ​​\ bin

+1
source share

All Articles