使用sudo安装RVM时出错.如何扭转? [英] Made a mistake installing RVM with sudo. How to reverse?

查看:52
本文介绍了使用sudo安装RVM时出错.如何扭转?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Rails和Linux的新手,并且已经使用sudo安装了RVM.

sudo bash -s稳定<<(卷曲-s https://raw.github/wayneeseguin/rvm/master/binscripts/rvm-installer)

现在,我必须使用"rvmsudo"运行大多数命令(例如spork).这是多余的,也是我学到的方法,当某些东西冗余时通常是错误的.如何摆脱这种细微差别?是重新安装RVM的唯一方法吗?如果是这样,如何正确重新安装?

解决方案

使用 rvm implode 卸载rvm.检查/etc/profile /etc/bash_profile 或您使用的任何shell中是否没有剩余的环境变量.完成此操作后,请使用此处找到的单个用户指南重新安装./p>

您必须使用 sudo 执行 implode 命令,因为您以 root 身份安装了它.

I am new to Rails and Linux and have installed RVM with sudo.

sudo bash -s stable < <(curl -s https://raw.github/wayneeseguin/rvm/master/binscripts/rvm-installer)

Now I have to run most commands (like spork) with 'rvmsudo'. It is redundant, and the way I learned, when something is redundand it is often wrong. How to get rid of this nuance? Is the only way to reinstall RVM? If so, how to properly reinstall?

解决方案

Use rvm implode to uninstall rvm. Check that there are no environment variables left over in /etc/profile, /etc/bash_profile or whatever shell you're using. Once you do that, then re-install using the single user guide found here.

You'll have to execute the implode command using sudo since you installed it as root.

这篇关于使用sudo安装RVM时出错.如何扭转?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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