1
1

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 5 years have passed since last update.

GEM_HOME を指定した時は、PATH も通しておく

Last updated at Posted at 2016-09-22

やること

GEM_HOME を指定した時は、PATHも通しておく

~/.bash_profile

export PATH="$HOME/.rbenv/bin:$GEM_HOME/bin:$PATH"

起きた症状

bundle コマンドがないと言われる

$ bundle list
-bash: bundle: command not found

ruby -v と rails の ruby が違うバージョンになる

$ ruby -v
ruby 2.3.1p112

ちゃんと最新版のrubyなのだが、rails が起動しない。

$ rails

    Rails 5 requires Ruby 2.2.2 or newer.

    You're running
      ruby 2.0.0p648 

    Please upgrade to Ruby 2.2.2 or newer to continue.
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?