“RVM 不是函数"错误

编程入门 行业动态 更新时间:2024-10-24 08:26:15
本文介绍了“RVM 不是函数"错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

RVM 正确安装在我的机器上(运行 Mac OSX 10.6.8)并且运行良好.奇怪的是,要运行它,我必须为每个新会话使用 source ~/.rvm/scripts/rvm.我尝试从它创建一个符号链接到 /opt/local/bin/rvm,但是当它运行时它什么也不做.我还尝试创建从 ~/.rvm/bin/rvm 到 /opt/local/bin/rvm 的符号链接,当我运行 rvm 时> 在终端中,它按预期显示帮助页面.但是当我尝试 rvm use some_ruby_version 时,它总是显示RVM 不是一个函数,选择带有 'rvm use ...' 的红宝石将不起作用.".我该如何解决这个问题?

RVM is installed on my machine (running Mac OSX 10.6.8), correctly and it runs fine. The odd thing is that to run it, I have to use source ~/.rvm/scripts/rvm for every new session. I tried making a symlink from it to /opt/local/bin/rvm, but when it runs it does nothing. I also tried creating a symlink from ~/.rvm/bin/rvm to /opt/local/bin/rvm, and when I run rvm in the Terminal it displays the help page, as expected. But when I try rvm use some_ruby_version it always displays "RVM is not a function, selecting rubies with 'rvm use ...' will not work.". How can I fix this?

我的目标是让我不必每次会话都输入源命令,并且出于某种原因~/.profile确实如此不执行.

My goal is to get it to the the point that I don't have to type the source command every session, and for some reason ~/.profile does not execute.

推荐答案

我不明白 ~/.profile 正确做什么;我需要改为更改 ~/.bash_profile .问题解决了!

I didn't understand what ~/.profile does correctly; I needed to change ~/.bash_profile instead. Problem solved!

更多推荐

“RVM 不是函数"错误

本文发布于:2023-06-08 06:32:51,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/576169.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:函数   错误   RVM   quot

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!