rbenv 2.2.1无法安装,在bundler上抱怨(> = 0)

时间:2016-01-26 07:40:15

标签: ruby-on-rails ruby bundler rbenv

我无法安装rbenv 2.2.1版,请帮忙,可能是什么问题?

axil-Pro:~ megasap$ rbenv install 2.2.1
rbenv: /Users/axil/.rbenv/versions/2.2.1 already exists
continue with installation? (y/N) y
Downloading ruby-2.2.1.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/5a4de38068eca8919cb087d338c0c2e3d72c9382c804fb27ab746e6c7819ab28
Installing ruby-2.2.1...
Installed ruby-2.2.1 to /Users/axil/.rbenv/versions/2.2.1

ERROR:  Could not find a valid gem 'bundler\n' (>= 0) in any repository
ERROR:  Possible alternatives: bundle_rc, bundler08, bundler-fu, bundler, bundler-pgs
rbenv: error installing gem `bundler\n'

我正在使用OS X El Capitan - 10.11.1

1 个答案:

答案 0 :(得分:0)

.rbenv / default-gems中的

包含这一行“bundler \ n”

删除\ n做了诀窍

谢谢!