0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Rails | `bin_path ': dealing with can't find gem bundler

Last updated at Posted at 2019-04-16

problem

The bundler stopped working after raising the version of ruby. (rbenv + .ruby-versions)

$ bundle install

 /Users/yinaura/.rbenv/versions/2.2.4/lib/ruby/2.2.0/rubygems.rb:243:in `bin_path': can't find gem bundler (>= 0) (Gem::GemNotFoundException) from /Users/yinaura/projects/project/bin/bundle:4:in `<main>' 

Solution

The bundler reference directory has changed. The gem could not be found. So re-install bundler.

reinstall bundler

$ gem install bundler

This will create a bin for your ruby version.

.rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/exe/bundle

Gem reinstallation

There is no Gem, so reinstall it.

$ bundle install

It moved by this.

environment

  • ruby 2.0.0 => 2.4.4
  • Bundler version 1.11.2

Original by

Rails | `bin_path': can't find gem bundler に対処する

About

About this translattion

チャットメンバー募集

何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。

Twitter

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?