在共享主机环境中创建 RVM gemset
有人知道是否有一个配置变量来告诉 rvm 在我的主目录中创建 gemset(无 root 访问权限)?
[p3r66567@cp40 (ruby-1.8.6) ~]$ type rvm | head -1
rvm is a function
[p3r66567@cp40 (ruby-1.8.6) ~]$ which rvm
/usr/local/rvm/bin/rvm
[p3r66567@cp40 (ruby-1.8.6) ~]$ rvm gemset create testgemset
mkdir: cannot create directory `/usr/local/rvm/gems/ruby-1.8.6-p399@testgemset': Permission denied
info: Gemset 'testgemset' created.
Anyone know if there is a configuration variable to tell rvm to create the gemset in my home directory (no root access)?
[p3r66567@cp40 (ruby-1.8.6) ~]$ type rvm | head -1
rvm is a function
[p3r66567@cp40 (ruby-1.8.6) ~]$ which rvm
/usr/local/rvm/bin/rvm
[p3r66567@cp40 (ruby-1.8.6) ~]$ rvm gemset create testgemset
mkdir: cannot create directory `/usr/local/rvm/gems/ruby-1.8.6-p399@testgemset': Permission denied
info: Gemset 'testgemset' created.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
添加此行:
到 ~/.rvmrc
Add this line:
to ~/.rvmrc
如果您使用 root 为多用户会话安装了 rvm,并且现在使用其他用户登录,请确保该用户属于 rvm 组。如果没有从根会话运行此命令:
Ger
If you installed rvm with root for a multiuser session, and now you are logged in with a different user, make sure that user belongs to the rvm group. If not run this from your root session:
Ger