LoginSignup
7
7

More than 5 years have passed since last update.

rbenv alias

Last updated at Posted at 2014-03-28

rbenv alias

2.0.0-p353とか2.0.0-p451とかはインストール済みだけど、rubyのバージョン指定自体は2.0.0としてるときに下記の用なエラーがでる
rb
$ bundle config
rbenv: version `2.0.0' is not installed

なので、rbenv-aliasesを使って2.0.0-p451を2.0.0だと認識させる

$ brew install rbenv-aliases

$ rbenv alias --auto
1.9.3 => 1.9.3-p484
2.0.0 => 2.0.0-p451

$ rbenv versions
  system
  1.9.3
  1.9.3-p392
  1.9.3-p484
* 2.0.0 (set by /Users/yanap/repos/rspec_rails_4/.ruby-version)
  2.0.0-p353
  2.0.0-p451

$ bundle config
Settings are listed in order of priority. The top value will be used.
path
Set for your local app (/Users/yanap/repos/rspec_rails_4/.bundle/config): "vendor/bundle"

disable_shared_gems
Set for your local app (/Users/yanap/repos/rspec_rails_4/.bundle/config): "1"

これで大丈夫!

github

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