ruby 如何在 Mac 上删除捆绑器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/16299993/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-06 05:54:47  来源:igfitidea点击:

How to remove bundler on a mac

rubybundler

提问by TheLegend

I am getting a whole bunch of these errors:

我收到了一大堆这些错误:

bundle exec rake db:migrate
/Users/robpaulo/gems/gems/bcrypt-ruby-3.0.1/lib/bcrypt_ext.bundle: [BUG] Segmentation fault
ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-darwin10.8.0]

On all my versions of Ruby and I want to see if either my gems are messed or if I have to re-install rbenv. I am running Snow Leopard is there a way to uninstall bundler so that I can re-install it I tried the Bundlerwebsite and calling bundle -hin the console, no help there.

在我所有的 Ruby 版本上,我想看看我的 gems 是否被弄乱了,或者我是否必须重新安装 rbenv。我正在运行 Snow Leopard 有没有办法卸载 bundler 以便我可以重新安装它我尝试了Bundler网站并bundle -h在控制台中调用,没有帮助。

Then I tried bundle implodeto which bundle laughed maniacally. I also tried bundle uninstallwhich didn't work.

然后我试着bundle implode对哪个捆绑狂笑。我也试过bundle uninstall哪个不起作用。

回答by Dave S.

Bundler is just a regular gem, so you'd do:

Bundler 只是一个普通的宝石,所以你会这样做:

gem uninstall bundler

If you want to removal all gems so you're back at a clean slate, just do:

如果您想移除所有 gem 以便重新开始,请执行以下操作:

gem list | cut -d" " -f1 | xargs gem uninstall -aIx