RVM/rbenv rvm 安装问题

open · 2013年05月07日 · 最后由 tomwan 回复于 2013年07月15日 · 13401 次阅读

$ source ~/.bashrc -bash: /root/.rvm/scripts/rvm: 没有那个文件或目录 ????????? 变量问题? 怎么设置呢? —————————— 不是高 IT 的, 想安装部署 Rabel 一直折腾不明白,囧

楼主没写操作步骤... Wiki 可以参考:http://ruby-china.org/wiki/rvm-guide

#1 楼 @jiyinyiyong 我就是按照这个文档安装的呀,在 ubuntu12.04 上,

`$ curl -L get.rvm.io | bash -s stable

$ source ~/.bashrc 就出错了, 每次 SSH 登录就会提示-bash: /root/.rvm/scripts/rvm: 没有那个文件或目录

@open 你用的哪个用户装的 rvm,确定是用 root 安装的

#3 楼 @mojidong adduser open普通用户呀、

@open 你是用 root 切换到普通用户安装的吧,切换是不是没有使用正确的命令,要用su - open

#5 楼 @mojidong 嗯,但是提示bash: 行 535: /usr/local/rvm/RELEASE: 权限不够

@open 先切换到普通用户,然后在按 wiki:http://ruby-china.org/wiki/rvm-guide,里的步骤来做。

#7 楼 @mojidong

您看,是这么一个操作步骤么?

@open 你应该是之前安装了一个多用户的 rvm 两个选择

  1. 使用这个全局的 rvm
  2. 删除这个全局的,然后在装单用户的 rvm

#9 楼 @mojidong RVM 安装以后有写环境变量么,我还以为不同用户不会冲突的

@jiyinyiyong https://rvm.io/rvm/install/

Multi-User:

The rvm function will be automatically configured for every user on the system if you install with sudo. This is accomplished by loading /etc/profile.d/rvm.sh on login. Most Linux distributions default to parsing /etc/profile which contains the logic to load all files residing in the /etc/profile.d/ directory. Once you have added the users you want to be able to use RVM to the rvm grou p, those users MUST log out and back in to gain rvm group membership because group memberships are only evaluated by the operating system at initial login time. Zsh not always sources /etc/profile so you might need to add this in /etc/**/zprofile:
source /etc/profile

我也遇到这个问题,我的在/usr/local/rvm 里,我的是 ubuntu server

需要 登录 后方可回复, 如果你还没有账号请 注册新账号