Install RVM with current ruby and rails installed -


i using rails 3.2.14 , ruby ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux] out having rvm.

i need use rails 2.3 besides current rails version on same machine. have searched allows me use both of them on same machine , found rvm.

i using oh-my-zsh , have typed command install rvm

\curl -l https://get.rvm.io | bash -s stable 

after installation got warning

  * warning: have '~/.profile' file, might want load it,     add following line '/home/dexter/.bash_profile':        source ~/.profile 

and don't know should current ruby , rails. what needed steps use both of rails 3 , rails , previous warning following

➜  ~  ruby -v ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux] ➜  ~  ruby ruby: aliased bundled_ruby 

when type rvm list:

rvm list  rvm rubies   # no rvm rubies installed yet. try 'rvm install'. 

also when try go project called triton

➜  ~  cd ~/desktop\ item/triton rvm used gemfile selecting ruby, fine - heroku too, can ignore these warnings 'rvm rvmrc warning ignore /home/dexter/desktop item/triton/gemfile'. ignore warning files run 'rvm rvmrc warning ignore allgemfiles'.  ruby-1.9.3-p448 not installed. install do: 'rvm install ruby-1.9.3-p448' 

you no rvm rubies installed yet because there no rubies in rvm scope. 'main', system ruby has nothing common ruby's installed rvm, that's intentional. should install ruby in rvm with:

rvm install ruby-1.9.3-p194 

if want specific pathlevel.

you can use with

rvm use ruby-1.9.3-p194 

if want specific pathlevel. should create new gemset with

rvm gemset create putnamehere 

and use (it should done automatically if remeber correctly)

rvm gemset use putnamehere 

since should install gems in regular way, should go specific gemset specific ruby version.

edit: if want install ruby 1.8.6 rails 2 should:

rvm install ruby-1.8.6 # may take while rvm use ruby-1.8.6 rvm create gemset triton # or other name rvm gemset use triton gem install rails -v '~> 2.3' # or other version want, better do: bundle install #of course in app root directory - install necessary gems     altogeter rails 2 or whatever have specified 

Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -