使用rvm安装宝石 [英] installing gems using rvm

查看:87
本文介绍了使用rvm安装宝石的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当试图使用rvm安装gem时,我得到这个错误

When trying to install gems using rvm i get this error

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

,但它在rvm网站上说,你不应该使用sudo,所以我不知道我的设置有什么问题。当我输入$ GEM_HOME时,

but it says on the rvm site that you should not use sudo so I'm not sure whats wrong with my setup

它显示该目录指向rvm目录

when i type $GEM_HOME it shows that the directory is pointing to the rvm dir

$GEM_HOME
bash: /home/tee/.rvm/gems/ruby-1.8.7-p302: is a directory

任何想法我在做什么错误?

Any ideas what I'm doing wrong?

推荐答案

您的.gem文件夹存在权限问题。请确保所有者是您当前的用户。

There's a permission issue with your .gem folder. Make sure the owner is your current user.

sudo chown -R tee /home/tee/.gem

如果不起作用,请移除.gem文件夹。它会在您更新宝石缓存时自动创建。

If it doesn't work, remove the .gem folder. It is automatically created when you update the gem cache.

另外,请确保您从未使用sudo与rvm。

Also, make sure you never used sudo with rvm.

这篇关于使用rvm安装宝石的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆