Skip to content

Instantly share code, notes, and snippets.

@maxivak
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxivak/3ac898ab83f56ad06454 to your computer and use it in GitHub Desktop.
Save maxivak/3ac898ab83f56ad06454 to your computer and use it in GitHub Desktop.
Install Ruby 2.1.x on Windows

Install Ruby 2.1 on Windows

Devkit

https://github.com/oneclick/rubyinstaller/wiki/Development-Kit

download from http://rubyinstaller.org/downloads/

  • install to d:\devkit
  • cd d:\devkit
  • ruby dk.rb init

this will generate config.yml

  • ruby dk.rb install

Pik

https://github.com/vertiginous/pik

gem install pik

add "d:\pik" to your path

# check path

path

install pik

pik_install d:\pik

commands:

pik ls

# result:

ruby-1.9.3-p125
ruby-2.0.0-p353
ruby-2.0.0-p451
ruby-2.1.5-p273
 
pik use  ruby-2.1.5-p273

add ruby if needed:

pik add D:\Ruby200-x32\bin
pik add D:\Ruby200-x64\bin
pik add D:\RailsInstaller\Ruby1.9.3\bin

pik ls

mysql2

http://maxivak.com/installing-mysql2-gem-on-ruby-1-9-2-and-rails-3-0-5-on-windows/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment