---
title: "Remove ruby 2.6 bundled bundler"
description: "Generating a rails 6 app with ruby 2.6+ when you have bundler v2 installed creates unusable binstubs. If you are seeing this error You must use Bundler 2 or greater with this lockfile. you can remove…"
canonical: https://oozou.com/til/remove-ruby-2-6-bundled-bundler-39
locale: en
date: 2020-10-13
topic: ruby
---

# Remove ruby 2.6 bundled bundler

> Generating a rails 6 app with ruby 2.6+ when you have bundler v2 installed creates unusable binstubs. If you are seeing this error You must use Bundler 2 or greater with this lockfile. you can remove…

Published: 2020-10-13 · Topic: [ruby](https://oozou.com/til-topics/ruby) ([markdown](https://oozou.com/til-topics/ruby.md))

Generating a rails 6 app with ruby 2.6+ when you have bundler v2 installed creates unusable binstubs. If you are seeing this error *You must use Bundler 2 or greater with this lockfile.* you can remove the bundler that comes bundled with ruby 2.6 and rely on the manually installed v2 bundler.

If you are using rbenv you can use this command (adjust for your ruby version e.g. 2.6.\{0, 1} etc), other installation systems will use different locations

```shell
rm -rf ~/.rbenv/versions/2.6.1/lib/ruby/2.6.0/bundler*
```

---

Contact OOZOU: hello@oozou.com · +66 2544 0000 · https://oozou.com/contact

More for AI agents: https://oozou.com/llms.txt · every page has a markdown twin at its URL plus ".md"
