我使用Chruby ruby版本控件设置我的ruby默认值,但是当我尝试使用我的系统版本时,它会使用我的系统版本。我该如何解决?
glfwSwapBuffers()
答案 0 :(得分:6)
It looks like you’ve got Rails installed in the system Ruby but not in the chruby managed 2.2.3. Since the system Ruby gem executables are in /usr/bin/
they will be found when you are running a different version and don’t have the gem installed in that version.
To check, run which rails
(make sure you have used chruby
to select the recent Ruby first). You will probably see /usr/bin/rails
as the result.
The fix is simply to install Rails in the new Ruby (again, make sure you’ve selected 2.3.1 with chruby
first):
$ gem install rails