Help us understand the problem. What is going on with this article?

【AWS EC2】`find_spec_for_exe': can't find gem bundler (>= 0.a) with executable bundler (Gem::GemNotFoundException)

More than 1 year has passed since last update.

あなたのターミナルにはこのようなエラーが出ていますか?

[ec2-user@ip-XXX-XX-XX-XXX xxxxxx]$ bundler -v
Traceback (most recent call last):
    2: from /home/ec2-user/.rbenv/versions/2.5.1/bin/bundler:23:in `<main>'
    1: from /home/ec2-user/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems.rb:308:in `activate_bin_path'
/home/ec2-user/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems.rb:289:in `find_spec_for_exe': can't find gem bundler (>= 0.a) with executable bundler (Gem::GemNotFoundException)

入力するコマンド

$ rbenv exec gem install bundler
$ bundle install

この順で実行すればOK

参考記事

[エラーメッセージ] can't find gem bundler (>= 0.a) with executable bundler (Gem::GemNotFoundException)
https://qiita.com/MotohiroSiobara/items/c0d343a160cffc2902ef

kaorioka09jm
誰よりも肉を食って、誰よりも寝ることに、自信ありまぁああす! TECH::EXPERT(夜間59期 中退) 検証バイト→コーダー→WEBディレクター→プログラミング勉強中→2020年1月より業務委託で生活→TECH::EXPERTを中退して独学開始
http://okachanblog.com
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away