“RVM is not a function” error

后端 未结 10 1780
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-30 22:22

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 ev

10条回答
  •  被撕碎了的回忆
    2021-01-30 22:46

    None of these solutions seemed to redeem my problem which was on Ubuntu 12.04 LTS.

    What I did is the following:

    1. rvm get stable --auto-dotfiles as outlined in the RVM documentation here
    2. Added source ~/.profile as the first line of: ~/.bash_profile

    I will not all of these steps were documented as errors from the RVM command line:

    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 a example.

    and

    • WARNING: You have '~/.profile' file, you might want to load it, to do that add the following line to '/home/user_name/.bash_profile':

      source ~/.profile

提交回复
热议问题