ruby - Rails -v is giving me errors and the only solution I find gives different error -


i'm trying , running following tutorial had tried using hartl book 2 years ago unsuccessfully have these different things installed have no idea are, are, or how rid of them. don't remember i've installed. i'm on osx 10.6.8

the tutorial said rails new issues did , said should see bunch of things created , bundler. didn't see bundler. found instructions on post , followed them error:

xxxx-xxxx-macbook-pro:issues ryan$ bundle install fetching gem metadata http://rubygems.org/........... fetching gem metadata http://rubygems.org/.. resolving dependencies... bundler not find compatible versions gem "bundler": in gemfile: rails (= 3.0.1) ruby depends on   bundler (~> 1.0.0) ruby current bundler version: bundler (1.3.5) gemfile requires different version of bundler. perhaps need update bundler running `gem install bundler`? 

now if rails -v this:

/users/ryan/.rvm/gems/ruby-1.9.2-p318@rails3tutorial/gems/bundler-1.3.5/lib/bundler/resolver.rb:130:in `block in resolve': bundler not find compatible versions 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) gemfile requires different version of bundler. perhaps need update bundler running `gem install bundler`? /users/ryan/.rvm/gems/ruby-1.9.2-p318@rails3tutorial/gems/bundler-1.3.5/lib/bundler/resolver.rb:128:in `catch' /users/ryan/.rvm/gems/ruby-1.9.2-p318@rails3tutorial/gems/bundler-1.3.5/lib/bundler/resolver.rb:128:in `resolve' /users/ryan/.rvm/gems/ruby-1.9.2-p318@rails3tutorial/gems/bundler-1.3.5/lib/bundler/definition.rb:179:in `resolve' /users/ryan/.rvm/gems/ruby-1.9.2-p318@rails3tutorial/gems/bundler-1.3.5/lib/bundler/definition.rb:114:in `specs' /users/ryan/.rvm/gems/ruby-1.9.2-p318@rails3tutorial/gems/bundler-1.3.5/lib/bundler/definition.rb:159:in `specs_for' /users/ryan/.rvm/gems/ruby-1.9.2-p318@rails3tutorial/gems/bundler-1.3.5/lib/bundler/definition.rb:148:in `requested_specs' /users/ryan/.rvm/gems/ruby-1.9.2-p318@rails3tutorial/gems/bundler-1.3.5/lib/bundler/environment.rb:18:in `requested_specs' /users/ryan/.rvm/gems/ruby-1.9.2-p318@rails3tutorial/gems/bundler-1.3.5/lib/bundler/runtime.rb:13:in `setup' /users/ryan/.rvm/gems/ruby-1.9.2-p318@rails3tutorial/gems/bundler-1.3.5/lib/bundler.rb:120:in `setup' /library/firstapp/issues/config/boot.rb:8:in `<top (required)>' <internal:lib/rubygems/custom_require>:29:in `require' <internal:lib/rubygems/custom_require>:29:in `require' script/rails:5:in `<main>' 

another topic said see if have bundlers installed:

xxxxx-xxxx-macbook-pro:issues ryan$ gem list bundler *** local gems *** bundler (1.3.5, 1.0.22) 

so since 1.0.22 said being used removed 1.3.5

xxxx-xxxx-macbook-pro:issues ryan$ gem uninstall bundler -v 1.3.5 uninstalled bundler-1.3.5 

regardless of whether or not update i'm getting errors.

i'm lost. think rails3tutorial on year ago when tried hartl book , firstapp trying put tutorial i'm trying. if has clues love figure out. maybe 1 day i'll able past setup , productive on ruby on rails.

the problem propably outdated rails version (you using 3.0, 3.2 being current version). general advice: try use latest version of every gem.

to update gems/ruby, a

rvm stable # see note @ bottom, if not work rvm install 1.9.3 # may take time rvm use 1.9.3 --default gem install bundler gem install rails rails new issues 

note: if rvm stable not work, have @ this answer.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -