我使用以下程序(https://rvm.io/rvm/install)
安装了RVMcurl -sSL https://get.rvm.io | bash -s stable --ruby --rails
- 它在$ HOME中安装了RVM(单用户)。 (问题:如何在上面的命令中指定非默认的RVM安装路径?)在我的〜/ .cshrc中更新了$ PATH,以获得如下的RVM bin路径。 set path = ($HOME/.rvm/bin ${path})
prompt>which rvm
$HOME/.rvm/bin/rvm
prompt>rvm -v
rvm 1.26.9 (latest) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
prompt>rvm list
rvm rubies
# No rvm rubies installed yet. Try 'rvm help install'.
虽然我在步骤(1)中使用过--ruby和--rails,但我注意到Ruby&amp;没有安装Rails作为(1)的一部分。因此,尝试使用rvm install ruby
根据RVM安装说明,我需要source $HOME/.rvm/scripts/rvm
,它使用bash来执行。但是我们的整个环境都有tcsh作为shell,我无法承受改变它。
prompt>source ~/.rvm/scripts/rvm
if: Too few arguments.
由于我们的默认shell是TCSH并且脚本是用BASH编写的,所以它是错误的。
prompt> echo $SHELL
/bin/tcsh
我们使用〜/ .cshrc来配置我们的环境。
有人可以帮我修复设置,以便我可以使用RVM吗?
提前致谢。
我尝试了以下选项:
现在使用它作为变通方法:How do I use RVM with tcsh?(当我尝试运行rvm use
来切换Ruby版本时,它不能正常工作。
提示&gt; rvm使用1.8.6-p383
RVM is not a function, selecting rubies with 'rvm use ...' will not work.
You need to change your terminal emulator preferences to allow login shell.
Sometimes it is required to use `/bin/bash --login` as the command.
Please visit https://rvm.io/integration/gnome-terminal/ for an example.
RVM is not a function, selecting rubies with 'rvm use ...' will not work不是我问题的解决方案。我证实它不起作用。
不幸的是,我们没有使用〜/ .bashrc或〜/ .zshrc环境?这是否意味着RVM不支持CSH / TCSH环境?
提前感谢您的帮助。