ruby on rails - Error on starting application Bundler::GemNotFound -
i have started new app getting error when click 'about application's environment' link on welcome aboard page.
error starting application rack app raised exception when pow tried run it.
bundler::gemnotfound: not find activesupport-3.2.6 in of sources
my app running:
- rails 3.2.6
- ruby 1.9.3p194
- rubygems 1.8.24
- rvm 1.14.5
- pow 0.4.0
i found similar questions problem wit husing passenger, i'm not using that.
when run gem list get:
* local gems *
actionmailer (3.2.6) actionpack (3.2.6) activemodel (3.2.6) activerecord (3.2.6) activeresource (3.2.6) activesupport (3.2.6) arel (3.0.2) builder (3.0.0) bundler (1.1.4) coffee-rails (3.2.2) coffee-script (2.2.0) coffee-script-source (1.3.3) daemon_controller (1.0.0) erubis (2.7.0) execjs (1.4.0) fastthread (1.0.7) hike (1.2.1) i18n (0.6.0) journey (1.0.4) jquery-rails (2.0.2) json (1.7.3) mail (2.4.4) mime-types (1.19) multi_json (1.3.6) passenger (3.0.13) polyglot (0.3.3) rack (1.4.1) rack-cache (1.2) rack-ssl (1.3.2) rack-test (0.6.1) rails (3.2.6) railties (3.2.6) rake (0.9.2.2) rdoc (3.12) rubygems-bundler (1.0.3) rvm (1.11.3.4) sass (3.1.20) sass-rails (3.2.5) sprockets (2.4.3, 2.1.3) sqlite3 (1.3.6) thor (0.15.4, 0.15.3) tilt (1.3.3) treetop (1.4.10) tzinfo (0.3.33) uglifier (1.2.6)
any appreciated, thanks.
update
source 'https://rubygems.org' gem 'rails', '3.2.6' # bundle edge rails instead: # gem 'rails', :git => 'git://github.com/rails/rails.git' gem 'sqlite3' # gems used assets , not required # in production environments default. group :assets gem 'sass-rails', '~> 3.2.3' gem 'coffee-rails', '~> 3.2.1' # see https://github.com/sstephenson/execjs#readme more supported runtimes # gem 'therubyracer', :platforms => :ruby gem 'uglifier', '>= 1.0.3' end gem 'jquery-rails' # use activemodel has_secure_password # gem 'bcrypt-ruby', '~> 3.0.0' # use jbuilder templates json # gem 'jbuilder' # use unicorn app server # gem 'unicorn' # deploy capistrano # gem 'capistrano' # use debugger # gem 'debugger'
gemfile.lock
gem remote: https://rubygems.org/ specs: actionmailer (3.2.6) actionpack (= 3.2.6) mail (~> 2.4.4) actionpack (3.2.6) activemodel (= 3.2.6) activesupport (= 3.2.6) builder (~> 3.0.0) erubis (~> 2.7.0) journey (~> 1.0.1) rack (~> 1.4.0) rack-cache (~> 1.2) rack-test (~> 0.6.1) sprockets (~> 2.1.3) activemodel (3.2.6) activesupport (= 3.2.6) builder (~> 3.0.0) activerecord (3.2.6) activemodel (= 3.2.6) activesupport (= 3.2.6) arel (~> 3.0.2) tzinfo (~> 0.3.29) activeresource (3.2.6) activemodel (= 3.2.6) activesupport (= 3.2.6) activesupport (3.2.6) i18n (~> 0.6) multi_json (~> 1.0) arel (3.0.2) builder (3.0.0) coffee-rails (3.2.2) coffee-script (>= 2.2.0) railties (~> 3.2.0) coffee-script (2.2.0) coffee-script-source execjs coffee-script-source (1.3.3) erubis (2.7.0) execjs (1.4.0) multi_json (~> 1.0) hike (1.2.1) i18n (0.6.0) journey (1.0.4) jquery-rails (2.0.2) railties (>= 3.2.0, < 5.0) thor (~> 0.14) json (1.7.3) mail (2.4.4) i18n (>= 0.4.0) mime-types (~> 1.16) treetop (~> 1.4.8) mime-types (1.19) multi_json (1.3.6) polyglot (0.3.3) rack (1.4.1) rack-cache (1.2) rack (>= 0.4) rack-ssl (1.3.2) rack rack-test (0.6.1) rack (>= 1.0) rails (3.2.6) actionmailer (= 3.2.6) actionpack (= 3.2.6) activerecord (= 3.2.6) activeresource (= 3.2.6) activesupport (= 3.2.6) bundler (~> 1.0) railties (= 3.2.6) railties (3.2.6) actionpack (= 3.2.6) activesupport (= 3.2.6) rack-ssl (~> 1.3.2) rake (>= 0.8.7) rdoc (~> 3.4) thor (>= 0.14.6, < 2.0) rake (0.9.2.2) rdoc (3.12) json (~> 1.4) sass (3.1.20) sass-rails (3.2.5) railties (~> 3.2.0) sass (>= 3.1.10) tilt (~> 1.3) sprockets (2.1.3) hike (~> 1.2) rack (~> 1.0) tilt (~> 1.1, != 1.3.0) sqlite3 (1.3.6) thor (0.15.4) tilt (1.3.3) treetop (1.4.10) polyglot polyglot (>= 0.3.1) tzinfo (0.3.33) uglifier (1.2.6) execjs (>= 0.3.0) multi_json (~> 1.3) platforms ruby dependencies coffee-rails (~> 3.2.1) jquery-rails rails (= 3.2.6) sass-rails (~> 3.2.3) sqlite3 uglifier (>= 1.0.3)
i have run bundle install completed fine. however, if run sudo bundle install get:
/users/dave/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': not find bundler (>= 0) amongst [bigdecimal-1.1.0, io-console-0.3, json-1.5.4, minitest-2.5.1, rake-0.9.2.2, rdoc-3.9.4] (gem::loaderror) /users/dave/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec' /users/dave/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems.rb:1231:in `gem' /users/dave/.rvm/gems/ruby-1.9.3-p194@global/bin/bundle:18:in `<main>' /users/dave/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `eval' /users/dave/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `<main>'
pow trying start app "bundle exec" prefix. means app see gem in gemfile (and more precisely, gems in groups of current environment).
this great because enables have multiple apps using same gem in different version : might have app using rails 2 , 1 using rails 3, both installed on system first app says depend on rails 2 in gemfile , other 1 specify rails 3 dependency.
long story short : must declare each of dependency in gemfile , run "bundle install" before accessing app.
one more advice : don't forget specify version of rake , bundler use, might save life when upgrade gems on dev system not on prod server
Comments
Post a Comment