Rails not using correct version of Ruby

后端 未结 9 2264
春和景丽
春和景丽 2021-02-14 15:20

New information

This is what happens with rails console:

Loading development environment (Rails 3.1.1)
ruby-1.9.2-p290 :001 &         


        
9条回答
  •  [愿得一人]
    2021-02-14 15:59

    Do you have a .rvmrc file in your user directory?

    $ cat ~/.rvmrc
    => export rvm_path="/home/nick/.rvm"
    

    It should look something like that?

    And also check you've set up a .bashrc file like this:

    echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc 
    

提交回复
热议问题