Your Ruby version is 1.9.3, but your Gemfile specified 2.1.0

后端 未结 3 1611
隐瞒了意图╮
隐瞒了意图╮ 2021-01-06 18:19

When I run

rails server

I get the error.

There is some problem loading the gemsets

$rvm list
rvm rubies
ruby-1.9.         


        
3条回答
  •  半阙折子戏
    2021-01-06 18:45

    The problem is your PATH environment variable, it has to match GEM_PATH and in your case it does not. To fix it run:

    rvm get stable --auto-dotfiles
    

    This will update your shell initialization files and make sure rvm is properly loaded. Then open a new terminal (close the application and open it again), and run:

    rvm use 2.1.0
    

    On both steps read all the messages printed to you. They are important and contain information about how to fix your problems. RVM detects problems and tries to fix them or warns you about them if they can not or should not be fixed automatically.

提交回复
热议问题