我試圖起牀和運行下面的教程,但我曾嘗試使用哈特爾書約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