rbenv continually generating vagrant shim

丶灬走出姿态 提交于 2019-12-05 04:46:54

Until this issue is resolved in rbenv, you could do this:

alias vagrant /full/path/to/vagrant

Then everytime you run vagrant, the actual vagrant binary will be executed, rather than the shim.

Other people have apparently had the same problem; see https://github.com/sstephenson/rbenv/issues/388.

If you are using the bundler plugin for rbenv, then vendoring a project which uses the vagrant gem will evidently cause the shim to be built; try removing the bundler plugin, remove the vagrant shim, and run rbenv rehash to see the problem is fixed.

If you aren't using the bundler plugin, can you give us a list of all the rbenv plugins you are using?

Try:

ls ~/.rbenv/versions/*/bin | grep 'vagrant'

and if have gemset plugin

ls ~/.rbenv/*/gemsets/*/bin/ | grep 'vagrant'

If commands return results, delete the files. After this run rbenv rehash.

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