irb loading wrong ruby and gem path, using rbenv

陌路散爱 提交于 2019-12-04 18:35:48

Make sure you are setting your path correctly and initializing rbenv in the shell you are using.

I've added the following lines to my .bash_profile:

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

I had the problems you are exhibiting until I remembered to do this.

Also remember to set your global rbenv version of ruby

Once installed ruby using rbenv.

Have you rebuilded the shim binaries using the command

$ rbenv rehash

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!