我试图起床和运行下面的教程,但我曾尝试使用哈特尔书约2年前未成功,所以现在我拥有所有这些不同的东西安装,我不知道他们在哪里,他们是什么,或如何摆脱他们。我甚至不记得我安装的所有东西。我在OSX上10.6.8Rails -v给我的错误和唯一的解决方案,我发现给出了不同的错误
该教程说做rails new issues
所以我这样做,它说我应该看到一堆东西创建,然后打包器。我没有看到捆绑商。我发现了一些说明,另一SO张贴,并跟着他们去得到这个错误:如果我做rails -v
我得到这个
xxxx-xxxx-macbook-pro:issues Ryan$ bundle install
Fetching gem metadata from http://rubygems.org/...........
Fetching gem metadata from http://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
rails (= 3.0.1) ruby depends on
bundler (~> 1.0.0) ruby
Current Bundler version:
bundler (1.3.5)
This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running `gem install bundler`?
现在:
/Users/Ryan/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/resolver.rb:130:in `block in resolve': Bundler could not find compatible versions for gem "bundler": (Bundler::VersionConflict)
In Gemfile:
rails (= 3.0.1) ruby depends on
bundler (~> 1.0.0) ruby
Current Bundler version:
bundler (1.3.5)
This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running `gem install bundler`?
from /Users/Ryan/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/resolver.rb:128:in `catch'
from /Users/Ryan/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/resolver.rb:128:in `resolve'
from /Users/Ryan/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/definition.rb:179:in `resolve'
from /Users/Ryan/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/definition.rb:114:in `specs'
from /Users/Ryan/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/definition.rb:159:in `specs_for'
from /Users/Ryan/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/definition.rb:148:in `requested_specs'
from /Users/Ryan/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/environment.rb:18:in `requested_specs'
from /Users/Ryan/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/runtime.rb:13:in `setup'
from /Users/Ryan/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler.rb:120:in `setup'
from /Library/firstapp/issues/config/boot.rb:8:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from script/rails:5:in `<main>'
另一个SO话题说,看看我是否有捆扎机安装:
xxxxx-xxxx-macbook-pro:issues Ryan$ gem list bundler
*** LOCAL GEMS ***
bundler (1.3.5, 1.0.22)
所以后来因为1.0.22说使用它的存在我删除了1.3.5
xxxx-xxxx-macbook-pro:issues Ryan$ gem uninstall bundler -v 1.3.5
Successfully uninstalled bundler-1.3.5
不管我是否更新这个,我得到的错误。
我很迷茫。我认为rails3tutorial来自一年前,当我尝试Hartl书籍和firstapp是我试图把我正在尝试的教程的地方。如果有人有任何线索,我真的很想弄清楚。也许有一天我甚至能够通过设置并在Ruby On Rails上做一些有效的工作。
是'gem update'与'gem update --system'不同吗?我认为这些都是一样的,并用'--system'完成。 – Ryan 2013-05-02 23:04:47
'gem update --system'更新RubyGems软件,但不是您的宝石。 – tessi 2013-05-02 23:08:03
做'gem update'得到了“railties可执行的”rails“与rails冲突,覆盖了这个可执行文件”我不知道railt是什么。我想覆盖吗? – Ryan 2013-05-02 23:18:24