I have created a rails3 app using rvm a few month ago. Everything works fine.
Now, I want to create another rails3 app. So I done :
$> rails new my_app
Everything works fine. Next, I wanted to link my app with rvm, so I tryed this:
$> ruby -v
ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-linux]
$> rvm install 1.9.3
$> rvm get head
$> rvm --rvmrc --create 1.9.3-p448@my_app (http://stackoverflow.com/questions/11138376/how-to-make-rvmrc-file-in-project-root-folder)
But I have got this error :
mkdir: cannot create directory `/usr/local/rvm/gems/ruby-1.9.3-p448@bcayi': Permission denied
Ok, permission denied, so I tryed:
$> rvmsudo --rvmrc --create 1.9.3-p448@my_app
And I have got this error:
sudo: invalid option -- '-'
So my question is : How to link rvm to my rails app ?
Problem solved !
Because the
rvmsudo --rvmrc --create 1.9.3-p448@my_app
failed, I have created the 1.9.3-p448@my_app directory manually :Then, I passed the ruby-1.9.3-p448@my_app directory in the rvm group :
Finally, I could create my gemset without
rvmsudo
: