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 不是函数"错误
发布评论