在 Linux Mint KDE 上安装 rvm
我很难在 Mint 上安装 rvm。我尝试了以下说明:
https://rvm.beginrescueend.com/rvm/install/
第一步顺利进行。但是,当我尝试运行 source ~/.bash_profile 时,收到一条错误消息,指出不存在这样的目录。我可以重新启动终端,但它仍然显示“当前未安装程序‘rvm’......”
现在我的主目录中存在一个 .rvm 目录,并且二进制文件也在那里。我怀疑这意味着我需要在 .bashrc (或其他地方)中添加一些内容来告诉操作系统在哪里寻找可执行文件。但我对 Linux 还是有点陌生,不确定它到底需要去哪里或者应该是什么。
I'm having a hard time getting rvm to install on Mint. I tried the instructions at:
https://rvm.beginrescueend.com/rvm/install/
The first step proceeds without incident. However, when I try to run source ~/.bash_profile, I get an error message stating that no such directory exists. I can restart the terminal, but it still says that "The program 'rvm' is currently not installed...."
A .rvm directory in now present in my home directory and the binary is there. I'm suspecting that this means that I need to add something in my .bashrc (or somewhere else) to tell the OS where to look for executables. But I'm still a little new at Linux and am uncertain where exactly it needs to go or what it should be.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
同一网站的答案:
它对我有用。
The Answer in the same site:
it works for me.
[[ -s "$HOME/.rvm/scripts/rvm" ]] && 。 "$HOME/.rvm/scripts/rvm" #
加载 RVM 函数看起来需要将其添加到 .bashrc 文件 的末尾(如果它不存在)。
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" #
Load RVM functionLooks like this needs to be tacked onto the end of the .bashrc file if it isn't present.