Bundler not working with rbenv, could not find [gem]

前端 未结 10 1986
没有蜡笔的小新
没有蜡笔的小新 2020-12-04 10:46

I\'ve just made the switch from rvm to rbenv and I\'m trying to use bundler for gem management. After running bundle install and trying to run

10条回答
  •  执笔经年
    2020-12-04 11:21

    Just a reminder too that rbenv is not compatible with rvm they do not play nicely. For your sanity, uninstall rvm if you want to use rbenv. From the rbenv README:

    Compatibility note: rbenv is incompatible with rvm. Things will appear to work until you try to install a gem. The problem is that rvm actually overrides the gem command with a shell function! Please remove any references to rvm before using rbenv.

    Luckily, Wayne (rvm creator) provides a remove rvm easily using:

    rvm implode

    As a regular use or:

    rvmsudo rvm implode

    To clean rvm system wide.

提交回复
热议问题