当我使用rvm use 1.9.2
时,我得到 Rails v3.0.0:
vikas@admin1-DL-H61MXEL:~$ rvm use 1.9.2 --default
Using /home/vikas/.rvm/gems/ruby-1.9.2-p320
vikas@admin1-DL-H61MXEL:~$ rails -v
Rails 3.0.0
当我使用rvm use 2.0.0
时,我得到 Rails v3.2.13:
vikas@admin1-DL-H61MXEL:~$ rvm use 2.0.0
Using /home/vikas/.rvm/gems/ruby-2.0.0-p195
vikas@admin1-DL-H61MXEL:~$ rails -v
Rails 3.2.13
我需要带有 Ruby 1.9.2 的 Rails v3.2.13。
当我使用rvm use 1.9.2 --default
andgem install rails -v 3.2.13
时,出现以下错误:
While executing gem ... (Gem::FilePermissionError) You don't have write permissions into the /home/vikas/.rvm/gems/ruby-1.9.2-p320/bin directory.
This is the error I'm facing now.