ruby - Rails not finding rake-10.5.0 -


i trying install rake gem in rails 4.2. th gem seems install fine, rails fails when tries run, saying cannot see rake-10.5.0. developing in rubymine , error getting below, gemfile. have tried deleting gemfile.lock suggested other posts, no avail.

console:

 ~/development/rubymineprojects/revenant.tech     ls gemfile     rakefile    config      lib     test gemfile.lock    app     config.ru   log     tmp readme.rdoc bin     db      public      vendor  ~/development/rubymineprojects/revenant.tech     gem install rack installed rack-1.6.4 parsing documentation rack-1.6.4 done installing documentation rack after 2 seconds 1 gem installed  ~/development/rubymineprojects/revenant.tech     bundle update rake fetching gem metadata https://rubygems.org/........... fetching version metadata https://rubygems.org/... fetching dependency metadata https://rubygems.org/.. resolving dependencies... using rake 10.5.0 using i18n 0.7.0 using json 1.8.3 using minitest 5.8.3 using thread_safe 0.3.5 using builder 3.2.2 using erubis 2.7.0 using mini_portile2 2.0.0 using rack 1.6.4 using mime-types 2.99 using arel 6.0.3 using debug_inspector 0.0.2 using bundler 1.11.2 using byebug 8.2.1 using coffee-script-source 1.10.0 using execjs 2.6.0 using thor 0.19.1 using concurrent-ruby 1.0.0 using multi_json 1.11.2 using mysql2 0.4.2 using sass 3.4.21 using tilt 2.0.2 using spring 1.6.2 using tzinfo 1.2.2 using nokogiri 1.6.7.1 using rack-test 0.6.3 using mail 2.6.3 using binding_of_caller 0.7.2 using coffee-script 2.4.1 using uglifier 2.7.2 using sprockets 3.5.2 using activesupport 4.2.5 using loofah 2.0.3 using rails-deprecated_sanitizer 1.0.3 using globalid 0.3.6 using activemodel 4.2.5 using jbuilder 2.4.0 using rails-html-sanitizer 1.0.2 using rails-dom-testing 1.0.7 using activejob 4.2.5 using activerecord 4.2.5 using actionview 4.2.5 using actionpack 4.2.5 using actionmailer 4.2.5 using railties 4.2.5 using sprockets-rails 3.0.0 using coffee-rails 4.1.1 using jquery-rails 4.1.0 using rails 4.2.5 using sass-rails 5.0.4 using web-console 2.2.1 using turbolinks 2.5.3 bundle updated!  ~/development/rubymineprojects/revenant.tech     rm gemfile.lock   ~/development/rubymineprojects/revenant.tech     bundle install fetching gem metadata https://rubygems.org/........... fetching version metadata https://rubygems.org/... fetching dependency metadata https://rubygems.org/.. resolving dependencies..... using rake 10.5.0 using i18n 0.7.0 using json 1.8.3 using minitest 5.8.3 using thread_safe 0.3.5 using builder 3.2.2 using erubis 2.7.0 using mini_portile2 2.0.0 using rack 1.6.4 using mime-types 2.99 using arel 6.0.3 using debug_inspector 0.0.2 using bundler 1.11.2 using byebug 8.2.1 using coffee-script-source 1.10.0 using execjs 2.6.0 using thor 0.19.1 using concurrent-ruby 1.0.0 using multi_json 1.11.2 using mysql2 0.4.2 using sass 3.4.21 using tilt 2.0.2 using spring 1.6.2 using tzinfo 1.2.2 using nokogiri 1.6.7.1 using rack-test 0.6.3 using mail 2.6.3 using binding_of_caller 0.7.2 using coffee-script 2.4.1 using uglifier 2.7.2 using sprockets 3.5.2 using activesupport 4.2.5 using loofah 2.0.3 using rails-deprecated_sanitizer 1.0.3 using globalid 0.3.6 using activemodel 4.2.5 using jbuilder 2.4.0 using rails-html-sanitizer 1.0.2 using rails-dom-testing 1.0.7 using activejob 4.2.5 using activerecord 4.2.5 using actionview 4.2.5 using actionpack 4.2.5 using actionmailer 4.2.5 using railties 4.2.5 using sprockets-rails 3.0.0 using coffee-rails 4.1.1 using jquery-rails 4.1.0 using rails 4.2.5 using sass-rails 5.0.4 using web-console 2.2.1 using turbolinks 2.5.3 bundle complete! 12 gemfile dependencies, 52 gems installed. use `bundle show [gemname]` see bundled gem installed.  ~/development/rubymineprojects/revenant.tech     

rubymine console error:

/usr/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=argv.shift) /users/richardcurteis/development/rubymineprojects/revenant.tech/bin/rails server -b 0.0.0.0 -p 3000 -e development /library/ruby/gems/2.0.0/gems/bundler-1.11.2/lib/bundler/spec_set.rb:94:in `block in materialize': not find rake-10.5.0 in of sources (bundler::gemnotfound)     /library/ruby/gems/2.0.0/gems/bundler-1.11.2/lib/bundler/spec_set.rb:87:in `map!'     /library/ruby/gems/2.0.0/gems/bundler-1.11.2/lib/bundler/spec_set.rb:87:in `materialize'     /library/ruby/gems/2.0.0/gems/bundler-1.11.2/lib/bundler/definition.rb:137:in `specs'     /library/ruby/gems/2.0.0/gems/bundler-1.11.2/lib/bundler/definition.rb:182:in `specs_for'     /library/ruby/gems/2.0.0/gems/bundler-1.11.2/lib/bundler/definition.rb:171:in `requested_specs'     /library/ruby/gems/2.0.0/gems/bundler-1.11.2/lib/bundler/environment.rb:18:in `requested_specs'     /library/ruby/gems/2.0.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:13:in `setup'     /library/ruby/gems/2.0.0/gems/bundler-1.11.2/lib/bundler.rb:92:in `setup'     /library/ruby/gems/2.0.0/gems/bundler-1.11.2/lib/bundler/setup.rb:18:in `<top (required)>'     /system/library/frameworks/ruby.framework/versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `require'     /system/library/frameworks/ruby.framework/versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'     /system/library/frameworks/ruby.framework/versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:144:in `require'     /users/richardcurteis/development/rubymineprojects/revenant.tech/config/boot.rb:3:in `<top (required)>'     /users/richardcurteis/development/rubymineprojects/revenant.tech/bin/rails:3:in `require_relative'     /users/richardcurteis/development/rubymineprojects/revenant.tech/bin/rails:3:in `<top (required)>'     -e:1:in `load'     -e:1:in `<main>'  process finished exit code 1 

rakefile:

source 'https://rubygems.org'   # bundle edge rails instead: gem 'rails', github: 'rails/rails' gem 'rails', '4.2.5' # use mysql database active record gem 'mysql2', '>= 0.3.13', '< 0.5' # use scss stylesheets gem 'sass-rails', '~> 5.0' # use uglifier compressor javascript assets gem 'uglifier', '>= 1.3.0' # use coffeescript .coffee assets , views gem 'coffee-rails', '~> 4.1.0' # see https://github.com/rails/execjs#readme more supported runtimes # gem 'therubyracer', platforms: :ruby  # use jquery javascript library gem 'jquery-rails' # turbolinks makes following links in web application faster. read more: https://github.com/rails/turbolinks gem 'turbolinks' # build json apis ease. read more: https://github.com/rails/jbuilder gem 'jbuilder', '~> 2.0' # bundle exec rake doc:rails generates api under doc/api. gem 'sdoc', '~> 0.4.0', group: :doc  gem 'rake'  # use activemodel has_secure_password # gem 'bcrypt', '~> 3.1.7'  # use unicorn app server # gem 'unicorn'  # use capistrano deployment # gem 'capistrano-rails', group: :development  group :development, :test   # call 'byebug' anywhere in code stop execution , debugger console   gem 'byebug' end  group :development   # access irb console on exception pages or using <%= console %> in views   gem 'web-console', '~> 2.0'    # spring speeds development keeping application running in background. read more: https://github.com/rails/spring   gem 'spring' end 

i think multiple version of rake installed in system,. start application use

bundle exec rails s -p 3000 

you check list of rake installed in system gem list | grep rake


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -