Search code examples
ruby-on-railsrubyrbenv

Error while running any ruby related commands


Gives me this error twice:

rbenv: version `2.1.1' is not installed
rbenv: version `2.1.1' is not installed

When I do rvenv versions it gives me this output

  system
  1.9.3-p547
* 2.1.1

Not sure what wrong I'm doing here.


Solution

  • adding these two lines inside my bashrc file solved my problem.

    export PATH="$HOME/.rbenv/bin:$PATH"
    eval "$(rbenv init -)"