LoginSignup
1
1

More than 5 years have passed since last update.

Ubuntuをアップグレードした後にBundleで「bad interpreter」と出た

Last updated at Posted at 2016-09-26

bundle exec ruby hello.rbが通らなくなった。

ruby -v       
ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu]

rubyはOK

bundle -v
zsh: /usr/local/bin/bundle: bad interpreter: /usr/bin/ruby2.1: そのようなファイルやディレクトリはありません

bundlerがダメだった。入っているrubyが2.3.1で、見に行ってる場所が違うという事は分かったので…

再インストールした :innocent:

which bundle
/usr/local/bin/bundle

sudo rm /usr/local/bin/bundle

which bundle
bundle not found
sudo gem install bundler
bundle -v                  
Bundler version 1.13.1

実行出来た。bad interpreterが出たら再インストールすればどうにかなるかもしれない。

1
1
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
1
1