“RVM 不是函数"错误 [英] "RVM is not a function" error

查看:46
本文介绍了“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 不是函数"错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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