The alternative to rvm on windows is : https://github.com/ vertiginous/pik/
1. http://www.rubyinstaller.org/ downloads/
, intall the ruby1.8.7-p334 . The installer does not add it in
your path .. so add C:/Ruby187/bin in your path ( or whereever you have
intalled it ) /
2. gem install rake
3. gem install isolate
4. gem install pik
5. pik_install c:/tools
6. add c:/tools to your path .
7. vi ~/.bash_profile and add :
[[ -s $USERPROFILE/.pik/.pikrc ]] && source $USERPROFILE/.pik/.pikrc
if that doesnt work , add :
[[ -s /c/Documents\ and\ Settings/test/.pik/.pikrc ]] && source /c/Documents\ and\ Settings/test/.pik/.pikrc
Note : the "test" is the name of my user on the machine .. it will be different for you .
8. pik list
Should show you the ruby-1.8.7
9. pik install ruby
It installed the ruby 1.9.2 for me .
10. pik list
Showed me ruby1.8.7
11. gem install rails -v=2.3.10
installed fine .
12. gem list --local
Showed all the 7 - 8 gems of rails
13. pik use 192
changes ruby to 1.9.2
14. gem list -local
The rails gems are no longer shown
15. pik use 187
gm list --local
The rails gems are back ..
Multiple ruby support is done .
1. http://www.rubyinstaller.org/
2. gem install rake
3. gem install isolate
4. gem install pik
5. pik_install c:/tools
6. add c:/tools to your path .
7. vi ~/.bash_profile and add :
[[ -s $USERPROFILE/.pik/.pikrc ]] && source $USERPROFILE/.pik/.pikrc
if that doesnt work , add :
[[ -s /c/Documents\ and\ Settings/test/.pik/.pikrc ]] && source /c/Documents\ and\ Settings/test/.pik/.pikrc
Note : the "test" is the name of my user on the machine .. it will be different for you .
8. pik list
Should show you the ruby-1.8.7
9. pik install ruby
It installed the ruby 1.9.2 for me .
10. pik list
Showed me ruby1.8.7
11. gem install rails -v=2.3.10
installed fine .
12. gem list --local
Showed all the 7 - 8 gems of rails
13. pik use 192
changes ruby to 1.9.2
14. gem list -local
The rails gems are no longer shown
15. pik use 187
gm list --local
The rails gems are back ..
Multiple ruby support is done .
No comments:
Post a Comment