在 KDE Linux Mint 12 上删除 RVM 以作为单用户重新安装 RVM
我在单用户环境中正确安装 RVM 时遇到问题。 RVM 不断给我错误,我需要重新开始。 =)
我从这里遵循了答案: 使用 RVM 安装了 Ruby 1.9.3,但命令行不显示 ruby -v
但当我运行时环境| grep rvm
我明白了:
$ env | grep rvm
rvm_dump_environment_flag=0
rvm_clang_flag=0
rvm_path=/usr/share/ruby-rvm
rvm_prefix=/usr/share
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/share/ruby-rvm/bin:/home/jadmin/.rvm/bin
rvm_version=1.6.9
rvm_reload_flag=0
这让我相信这就是我在尝试以单个用户身份安装 RVM 时收到此错误的原因:
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
mkdir: cannot create directory `/usr/share/ruby-rvm': Permission denied
我对 ruby & 相对较新。 Rails,并在 Linux 上设置开发环境。我很感激任何帮助=)
I've been having issues installing RVM correctly in a single user environment. RVM keeps giving me errors and I need to just start over. =)
I followed the answer from here: Installed Ruby 1.9.3 with RVM but command line doesn't show ruby -v
but when I run env | grep rvm
I get this:
$ env | grep rvm
rvm_dump_environment_flag=0
rvm_clang_flag=0
rvm_path=/usr/share/ruby-rvm
rvm_prefix=/usr/share
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/share/ruby-rvm/bin:/home/jadmin/.rvm/bin
rvm_version=1.6.9
rvm_reload_flag=0
which brings me to believe this is the reason I'm getting this error when trying to install RVM as a single user:
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
mkdir: cannot create directory `/usr/share/ruby-rvm': Permission denied
I'm relatively new to ruby & rails, and setting up a dev environment on linux. I appreciate any help =)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用这个答案使用 RVM 安装了 Ruby 1.9.3,但命令行不显示 ruby -v
这是 apt 版本的问题rvm,也许有一天它会得到修复,有一天我正在帮助改进它......
use this answer Installed Ruby 1.9.3 with RVM but command line doesn't show ruby -v
It's a problem with apt version of rvm, possibly it will get fixed someday, I was helping someday to improve it ...