installing gems using rvm

前端 未结 5 1157
长情又很酷
长情又很酷 2020-12-28 17:16

When trying to install gems using rvm i get this error

$ rvm gem install sproutcore
ERROR:  While executing gem ... (Errno::EACCES)
Permission denied - /home         


        
5条回答
  •  北荒
    北荒 (楼主)
    2020-12-28 17:35

    I was having the same problem because the RVM was installed globally, in /usr/local/rvm , so it had no permission to install gems in ruby directory.

    The workaround is to use Single User Installation, this will install your rvm in your user's home directtory(~/.rvm) so it will have all necessary permissions to install the gemsets and gems.

    If you want to know the subject better read https://rvm.io/rvm/install . You will see that Single User Install is the recommended .

提交回复
热议问题