I have installed RVM using following procedure (https://rvm.io/rvm/install)
curl -sSL https://get.rvm.io | bash -s stable --ruby --rails
- it has installed RVM (single-user) in $HOME. (Question: How do I specify a non-default RVM installation path in above command?)Updated $PATH in my ~/.cshrc to have RVM bin path as below.
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'.
Though I have used --ruby and --rails in step (1), I noticed that Ruby & Rails were not installed as part of (1). So trying to install Ruby myself, using
rvm install ruby
Per RVM installation instruction, I need to
source $HOME/.rvm/scripts/rvm
, which uses bash to execute. But our entire environment has tcsh as shell, and I cannot afford to change it.prompt>source ~/.rvm/scripts/rvm if: Too few arguments.
It is erroring out since our default shell is TCSH and the script is written in BASH.
prompt> echo $SHELL /bin/tcsh
And we use ~/.cshrc to configure our environment.
Can someone help me to fix the setup, so that I can use RVM?
Thanks in advance.
I tried following options:
Using this as workaround now: How do I use RVM with tcsh? (it doesn't work good when I try running
rvm use
to switch Ruby Version. prompt>rvm use 1.8.6-p383RVM 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.
http://po-ru.com/diary/using-rvm-with-tcsh/ does not help
RVM is not a function, selecting rubies with 'rvm use ...' will not work is not a solution for my problem. I verified it is not working.
Unfortunately, we are not using ~/.bashrc or ~/.zshrc environments? Does it mean RVM is not supporting CSH/TCSH environments?
Thanks for all your help in advance.