Ruby on rails 捆绑不';我不想安装gem(尚未签出)

Ruby on rails 捆绑不';我不想安装gem(尚未签出),ruby-on-rails,ruby,gem,bundler,Ruby On Rails,Ruby,Gem,Bundler,我想运行RubyonRails服务器,但某个gem不想安装。这个rails程序与ruby 2.0不兼容,所以我想使用我安装的ruby 1.9.3,但我不能再捆绑安装了 $ bundle install # ... Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed. $ bundle exec rails s git://github.com/goodtouch/

我想运行RubyonRails服务器,但某个gem不想安装。这个rails程序与ruby 2.0不兼容,所以我想使用我安装的ruby 1.9.3,但我不能再捆绑安装了

$ bundle install
# ...
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
$ bundle exec rails s
git://github.com/goodtouch/jbuilder.git (at master) is not yet checked out. Run `bundle install` first.
$ bundle show jbuilder
/Users/julien/.bundler/ruby/2.0.0/jbuilder-7fb0eae924c7
$ ruby --version
ruby 1.9.3p545 (2014-02-24 revision 45159) [x86_64-darwin13.1.0]
Gemfile
中,我指定了
ruby“1.9.3”
,然后再次运行
bundle安装
,得到:

Your Ruby version is 2.0.0, but your Gemfile specified 1.9.3
此特定gem的
Gemfile
行:

gem 'jbuilder', git: "git://github.com/goodtouch/jbuilder.git"
我在
Gemfile.lock中得到了什么:

GIT
  remote: git://github.com/goodtouch/jbuilder.git
  revision: 7fb0eae924c77318ede344f32a5c208b91cdbaac
  specs:
    jbuilder (0.4.1)
      activesupport (>= 3.0.0)
      blankslate (>= 2.1.2.4)
我真的不明白发生了什么事。我在MacOSX下


谢谢。

编辑:您必须使用或设置ruby版本。这不是在gem文件中设置的。红宝石不是宝石

此错误可能有多种原因之一


您使用的是
rvm
?运行
ruby-v
rvm在指定
ruby'1.9.3'
bundle安装之前使用1.9.3
我认为您仍然使用2.0.0…从bundler日志中有这个/Users/julien/.bundler/ruby/
2.0.0
/jbuilder-7fb0eae924c7这意味着ruby版本仍然是2.0.0.0是的,我知道,但我想知道他在哪里找到这个版本的ruby=°谢谢,我使用了rbenv,但显然它不起作用,使用
rvm更容易,而且它可以工作!谢谢很乐意帮忙!我也更喜欢rvm。我认为rvm更容易让我的头脑清醒。要了解两者最大的区别,请看这个。
# remove user-specific gems and git repos
rm -rf ~/.bundle/ ~/.gem/bundler/ ~/.gems/cache/bundler/

# remove system-wide git repos and git checkouts
rm -rf $GEM_HOME/bundler/ $GEM_HOME/cache/bundler/

# remove project-specific settings
rm -rf .bundle/

# remove project-specific cached gems and repos
rm -rf vendor/cache/

# remove the saved resolve of the Gemfile
rm -rf Gemfile.lock

# uninstall the rubygems-bundler and open_gem gems
rvm gemset use global # if using rvm
gem uninstall rubygems-bundler open_gem

# try to install one more time
bundle install