How to install ffi 1.9.25 successfully on M1 Chip - ruby-on-rails

An error occurred while installing ffi (1.9.25), and Bundler cannot continue.
In Gemfile:
bootstrap-sass was resolved to 3.3.7, which depends on
sass was resolved to 3.7.4, which depends on
sass-listen was resolved to 4.0.0, which depends on
rb-inotify was resolved to 0.10.1, which depends on
ffi
I'm running into this issue on an M1 laptop for a rails project I'm running bundle install, how to resolve this?
I tried running
gem install ffi -v '1.9.25' -- --with-cflags="-Wno-error=implicit-function-declaration"
Which installed the gem successfully, but when I try to run rake db:migrate this error comes up
rake db:migrate
rake aborted!
LoadError: dlopen(/Users/kanye.west/.rbenv/versions/2.6.9/lib/ruby/gems/2.6.0/gems/ffi-1.9.25/lib/ffi_c.bundle, 0x0009): symbol not found in flat namespace (_ffi_prep_closure) - /Users/kanye.west/.rbenv/versions/2.6.9/lib/ruby/gems/2.6.0/gems/ffi-1.9.25/lib/ffi_c.bundle
/Users/kanye.west/dev/anenta/config/application.rb:14:in `<top (required)>'
/Users/kanye.west/dev/anenta/Rakefile:5:in `require'
/Users/kanye.west/dev/anenta/Rakefile:5:in `<top (required)>'
/Users/kanye.west/.rbenv/versions/2.6.9/bin/bundle:23:in `load'
/Users/kanye.west/.rbenv/versions/2.6.9/bin/bundle:23:in `<main>'

Install ffi gem with below command
gem install ffi -v '1.9.25' -- --with-cflags="-Wno-error=implicit-function-declaration"

Related

getting error while runnning rails server

/usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in
`require': cannot load such file -- mkmf (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from extconf.rb:1:in `<main>'
Gem files will remain installed in /var/lib/gems/1.9.1/gems/json-1.8.6 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/json-1.8.6/ext/json/ext/generator/gem_make.out
An error occurred while installing json (1.8.6), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.6'` succeeds before bundling.
In Gemfile:
coffee-rails was resolved to 3.2.2, which depends on
railties was resolved to 3.2.16, which depends on
rdoc was resolved to 3.12.2, which depends on
json
Getting this error while running rails s.How to resolve it
commenting the content of gemfile and updating ruby and rails to a latest stable version will solve most of the errors.
for me I reinstalled ruby and rails using the steps provided at:
https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-with-rbenv-on-ubuntu-14-04

Heroku Application Error Hello_App from Ruby on Rails tutorial

I'm in the deployment section of the first chapter of the Ruby on Rails tutorial, and I can't make things work! I'm using the Cloud9 workspace.
My Gemfile is:
source 'https://rubygems.org'
ruby '2.2.1'
gem 'rails', '4.2.0'
gem 'sass-rails', '5.0.1'
gem 'uglifier', '2.5.3'
gem 'coffee-rails', '4.1.0'
gem 'jquery-rails', '4.0.3'
gem 'turbolinks', '2.3.0'
gem 'jbuilder', '2.2.3'
gem 'sdoc', '0.4.0', group: :doc
group :development, :test do
gem 'sqlite3', '1.3.9'
gem 'byebug', '3.4.0'
gem 'web-console', '2.0.0.beta3'
gem 'spring', '1.1.3'
end
group :production do
gem 'pg', '0.17.1'
gem 'rails_12factor', '0.0.2'
end
My Heroku installation log is:
-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.2.1
-----> Installing dependencies using 1.9.7
Ruby version change detected. Clearing bundler cache.
Old: ruby 2.0.0p645 (2015-04-13 revision 50299) [x86_64-linux]
New: ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Using rake 10.4.2
Installing minitest 5.7.0
Installing i18n 0.7.0
Installing builder 3.2.2
Installing thread_safe 0.3.5
Installing mini_portile 0.6.2
Installing erubis 2.7.0
Installing rack 1.6.4
Installing mime-types 2.6.1
Installing coffee-script-source 1.9.1.1
Installing arel 6.0.2
Installing json 1.8.3
Installing execjs 2.5.2
Installing thor 0.19.1
Using bundler 1.9.7
Installing multi_json 1.11.2
Installing rails_stdout_logging 0.0.3
Using rdoc 4.2.0
Installing rails_serve_static_assets 0.0.4
Installing tilt 1.4.1
Installing sass 3.4.16
Installing tzinfo 1.2.2
Installing rack-test 0.6.3
Installing sprockets 3.2.0
Installing mail 2.6.3
Installing coffee-script 2.4.1
Installing uglifier 2.5.3
Installing sdoc 0.4.0
Installing rails_12factor 0.0.2
Installing activesupport 4.2.0
Installing rails-deprecated_sanitizer 1.0.3
Installing globalid 0.3.5
Installing activemodel 4.2.0
Installing jbuilder 2.2.3
Installing activejob 4.2.0
Installing activerecord 4.2.0
Installing pg 0.17.1
Installing nokogiri 1.6.6.2
Installing loofah 2.0.2
Installing rails-dom-testing 1.0.6
Installing rails-html-sanitizer 1.0.2
Installing actionview 4.2.0
Installing actionpack 4.2.0
Installing sprockets-rails 2.3.2
Installing actionmailer 4.2.0
Installing railties 4.2.0
Installing coffee-rails 4.1.0
Installing jquery-rails 4.0.3
Installing rails 4.2.0
Installing sass-rails 5.0.1
Installing turbolinks 2.3.0
Bundle complete! 14 Gemfile dependencies, 51 gems now installed.
Gems in the groups development and test were not installed.
Bundled gems are installed into ./vendor/bundle.
Bundle completed (35.52s)
Cleaning up the bundler cache.
Could not detect rake tasks
ensure you can run `$ bundle exec rake -P` against your app with no environment variables present
and using the production group of your Gemfile.
rake aborted!
NameError: uninitialized constant Sass::Script
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/bundle/ruby/2.2.0/gems/sass-rails-5.0.1/lib/sass/rails/helpers.rb:11:in `<top (required)>'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/bundle/ruby/2.2.0/gems/sass-rails-5.0.1/lib/sass/rails.rb:8:in `require'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/bundle/ruby/2.2.0/gems/sass-rails-5.0.1/lib/sass/rails.rb:8:in `<top (required)>'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/bundle/ruby/2.2.0/gems/sass-rails-5.0.1/lib/sass-rails.rb:1:in `require'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/bundle/ruby/2.2.0/gems/sass-rails-5.0.1/lib/sass-rails.rb:1:in `<top (required)>'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:76:in `require'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:72:in `each'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:72:in `block in require'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:61:in `each'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:61:in `require'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler.rb:134:in `require'
/tmp/build_e66783d527b235cf6db9221a52037d9b/config/application.rb:7:in `<top (required)>'
/tmp/build_e66783d527b235cf6db9221a52037d9b/Rakefile:4:in `require'
/tmp/build_e66783d527b235cf6db9221a52037d9b/Rakefile:4:in `<top (required)>'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/ruby-2.2.1/lib/ruby/2.2.0/rake/rake_module.rb:28:in `load'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/ruby-2.2.1/lib/ruby/2.2.0/rake/rake_module.rb:28:in `load_rakefile'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:689:in `raw_load_rakefile'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:94:in `block in load_rakefile'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:176:in `standard_exception_handling'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:93:in `load_rakefile'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:77:in `block in run'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:176:in `standard_exception_handling'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/ruby-2.2.1/lib/ruby/2.2.0/rake/application.rb:75:in `run'
/tmp/build_e66783d527b235cf6db9221a52037d9b/vendor/ruby-2.2.1/lib/ruby/gems/2.2.0/gems/rake-10.4.2/bin/rake:33:in `<top (required)>'
vendor/bundle/bin/rake:16:in `load'
vendor/bundle/bin/rake:16:in `<main>'
###### WARNING:
No Procfile detected, using the default web server (webrick)
https://devcenter.heroku.com/articles/ruby-default-web-server
-----> Discovering process types
Procfile declares types -> (none)
Default types for Ruby -> console, rake, web, worker
-----> Compressing... done, 29.1MB
-----> Launching... done, v6
https://lit-caverns-5466.herokuapp.com/ deployed to Heroku
When I open the link I get the message:
Application Error
An error occurred in the application and your page could not be
served. Please try again in a few moments.
If you are the application owner, check your logs for details.
Does your app run successfully in production mode locally ? If not try to run your app locally in production mode and you might be able to spot the issue.
bundle install --without development:test
RAILS_ENV=production rake db:create db:migrate
RAILS_ENV=production rails s

Mina deploy doesn't install pg gem

When mina deploy runs an error occurs during migration that pg gem is not loaded.The problem is that the gem is loaded in my gem file but during the mina's bundle install pg gem doesn't get installed.
Any ideas how to fix this issue?
-----> Migrating database
$ RAILS_ENV="production" bundle exec rake db:migrate
rake aborted!
Gem::LoadError: Specified 'postgresql' for database adapter, but the gem is not loaded. Add `gem 'pg'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).
Gemfile
gem 'mail_form'
gem 'devise'
gem 'cancancan'
group :production do
gem 'pg'
gem 'therubyracer'
end
database.yml
production:
adapter: postgresql
encoding: unicode
database: tech
username: admin
password: PASSWORD
host: localhost
mina deploy --verbose
-----> Loading rbenv
$ export RBENV_ROOT="$HOME/.rbenv"
$ export PATH="$HOME/.rbenv/bin:$PATH"
$ eval "$(rbenv init -)"
-----> Creating a temporary build path
$ touch "deploy.lock"
$ mkdir -p "$build_path"
$ cd "$build_path"
-----> Fetching new git commits
$ (cd "/home/deployer/tech/scm" && git fetch "git#bitbucket.org:gns/tech.git" "master:m
$ (cd "/home/deployer/tech/scm" && git fetch "git#bitbucket.org:gns/tech.git" "master:master" --force)
-----> Using git branch 'master'
$ git clone "/home/deployer/tech/scm" . --recursive --branch "master"
Cloning into '.'...
done.
-----> Using this git commit
$ git --no-pager log --format='%aN (%h):%n> %s' -n 1
yiannis (4ef997e):
> Gemfile
$ rm -rf .git
-----> Symlinking shared paths
$ mkdir -p "./config"
$ mkdir -p "."
$ rm -rf "./config/database.yml"
$ ln -s "/home/deployer/tech/shared/config/database.yml" "./config/database.yml"
$ rm -rf "./log"
$ ln -s "/home/deployer/tech/shared/log" "./log"
$ rm -rf "./config/secrets.yml"
$ ln -s "/home/deployer/tech/shared/config/secrets.yml" "./config/secrets.yml"
-----> Installing gem dependencies using Bundler
$ mkdir -p "/home/deployer/tech/shared/bundle"
$ mkdir -p "./vendor"
$ ln -s "/home/deployer/tech/shared/bundle" "./vendor/bundle"
$ bundle install --without development:test --path "./vendor/bundle" --deployment
Fetching gem metadata from http://rubygems.org/........
Using rake 10.4.2
Using i18n 0.6.11
Using json 1.8.1
Using minitest 5.5.0
Using thread_safe 0.3.4
Using tzinfo 1.2.2
Using activesupport 4.1.8
Using builder 3.2.2
Using erubis 2.7.0
Using actionview 4.1.8
Using rack 1.5.2
Using rack-test 0.6.2
Using actionpack 4.1.8
Using mime-types 2.4.3
Using mail 2.6.3
Using actionmailer 4.1.8
Using activemodel 4.1.8
Using arel 5.0.1.20140414130214
Using activerecord 4.1.8
Using bundler 1.8.0.pre
Using thor 0.19.1
Using railties 4.1.8
Using hike 1.2.3
Using multi_json 1.10.1
Using tilt 1.4.1
Using sprockets 2.12.3
Using sprockets-rails 2.2.2
Using rails 4.1.8
Using animate-rails 1.0.7
Using aws-sdk-v1 1.59.1
Using aws-sdk 1.59.1
Using cancancan 1.9.2
Using chronic 0.10.2
Using climate_control 0.0.3
Using cocaine 0.5.5
Using coffee-script-source 1.8.0
Using execjs 2.2.2
Using coffee-script 2.3.0
Using coffee-rails 4.0.1
Using orm_adapter 0.5.0
Using responders 1.1.2
Using warden 1.2.3
Using devise 3.4.1
Using figaro 1.0.0
Using font-awesome-rails 4.2.0.0
Using foundation-datetimepicker-rails 0.1.3
Using sass 3.2.19
Using foundation-rails 5.4.5.0
Using friendly_id 5.0.4
Using google-webfonts-rails 0.0.4
Using jbuilder 2.2.6
Using jquery-rails 3.1.2
Using kaminari 0.16.1
Using libv8 3.16.14.7
Using mail_form 1.5.0
Using newrelic_rpm 3.9.8.273
Using paperclip 4.2.1
Using pg_search 0.7.8
Using rdoc 4.2.0
Using ref 1.0.5
Using sass-rails 4.0.5
Using sdoc 0.4.1
Using therubyracer 0.12.1
Using uglifier 2.6.0
Using whenever 0.9.4
Bundle complete! 25 Gemfile dependencies, 65 gems now installed.
Gems in the groups development and test were not installed.
Bundled gems are installed into ./vendor/bundle.
-----> Migrating database
$ RAILS_ENV="production" bundle exec rake db:migrate
rake aborted!
Gem::LoadError: Specified 'postgresql' for database adapter, but the gem is not loaded. Add `gem 'pg'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.8/lib/active_record/connection_adapters/connection_specification.rb:190:in `rescue in spec'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.8/lib/active_record/connection_adapters/connection_specification.rb:187:in `spec'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.8/lib/active_record/connection_handling.rb:50:in `establish_connection'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.8/lib/active_record/railtie.rb:129:in `block (2 levels) in <class:Railtie>'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/lazy_load_hooks.rb:28:in `block in on_load'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/lazy_load_hooks.rb:27:in `each'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/lazy_load_hooks.rb:27:in `on_load'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.8/lib/active_record/railtie.rb:118:in `block in <class:Railtie>'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/railties-4.1.8/lib/rails/initializable.rb:30:in `instance_exec'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/railties-4.1.8/lib/rails/initializable.rb:30:in `run'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/railties-4.1.8/lib/rails/initializable.rb:55:in `block in run_initializers'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/railties-4.1.8/lib/rails/initializable.rb:54:in `run_initializers'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/railties-4.1.8/lib/rails/application.rb:300:in `initialize!'
/home/deployer/tech/tmp/build-142229948411279/config/environment.rb:5:in `<top (required)>'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `block in require'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:232:in `load_dependency'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/railties-4.1.8/lib/rails/application.rb:276:in `require_environment!'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/railties-4.1.8/lib/rails/application.rb:389:in `block in run_tasks_blocks'
Gem::LoadError: pg is not part of the bundle. Add it to Gemfile.
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.8/lib/active_record/connection_adapters/postgresql_adapter.rb:13:in `<top (required)>'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `block in require'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:232:in `load_dependency'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.8/lib/active_record/connection_adapters/connection_specification.rb:188:in `spec'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.8/lib/active_record/connection_handling.rb:50:in `establish_connection'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.8/lib/active_record/railtie.rb:129:in `block (2 levels) in <class:Railtie>'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/lazy_load_hooks.rb:28:in `block in on_load'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/lazy_load_hooks.rb:27:in `each'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/lazy_load_hooks.rb:27:in `on_load'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.8/lib/active_record/railtie.rb:118:in `block in <class:Railtie>'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/railties-4.1.8/lib/rails/initializable.rb:30:in `instance_exec'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/railties-4.1.8/lib/rails/initializable.rb:30:in `run'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/railties-4.1.8/lib/rails/initializable.rb:55:in `block in run_initializers'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/railties-4.1.8/lib/rails/initializable.rb:54:in `run_initializers'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/railties-4.1.8/lib/rails/application.rb:300:in `initialize!'
/home/deployer/tech/tmp/build-142229948411279/config/environment.rb:5:in `<top (required)>'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `block in require'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:232:in `load_dependency'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/railties-4.1.8/lib/rails/application.rb:276:in `require_environment!'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/railties-4.1.8/lib/rails/application.rb:389:in `block in run_tasks_blocks'
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
! ERROR: Deploy failed.
-----> Cleaning up build
$ rm -rf "$build_path"
Unlinking current
$ rm -f "deploy.lock"
OK
! Command failed.
Failed with status 19
I'm sure set :rails_env, 'production' sets environment for rake and rails commands only, so try bundle_prefix.
In worst case move gem 'pg' to common section of Gemfile.

What this mistake: failed to push some refs to 'git#heroku.com?

I want to unload on Heroku.com own application on RubyOnRails, but I face some problems. One of this problems is that: LoadError: Please install the sqlite3 adapter: gem install activerecord-sqlite3-adapter (sqlite3 is not part of the bundle. Add it to Gemfile.)
Another problem is error: failed to push some refs to 'git#heroku.com:secure-anchorage-3129.git'
ark#ark-Aspire-5750G:~/priroda$ git push heroku master
Initializing repository, done.
Counting objects: 101, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (89/89), done.
Writing objects: 100% (101/101), 125.08 KiB, done.
Total 101 (delta 4), reused 0 (delta 0)
-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.0.0
-----> Installing dependencies using 1.6.3
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
Fetching gem metadata from https://rubygems.org/........
Fetching additional metadata from https://rubygems.org/..
Installing multi_json 1.10.1
Installing i18n 0.6.9
Installing rake 10.3.2
Installing builder 3.0.4
Installing journey 1.0.4
Installing erubis 2.7.0
Installing rack 1.4.5
Installing hike 1.2.3
Installing tilt 1.4.1
Installing mime-types 1.25.1
Installing polyglot 0.3.5
Installing arel 3.0.3
Installing acts_as_indexed 0.8.3
Installing babosa 0.3.11
Installing tzinfo 0.3.39
Installing coffee-script-source 1.7.0
Installing execjs 2.2.0
Installing thor 0.19.1
Installing orm_adapter 0.5.0
Using bundler 1.6.3
Installing bcrypt 3.1.7
Installing sass 3.3.8
Installing truncate_html 0.9.2
Installing json 1.8.1
Installing will_paginate 3.0.5
Installing rails-i18n 0.7.4
Installing activesupport 3.2.18
Installing rack-cache 1.2
Installing rack-test 0.6.2
Installing rack-ssl 1.3.4
Installing warden 1.2.3
Installing sprockets 2.2.2
Installing treetop 1.4.15
Installing coffee-script 2.2.0
Installing bcrypt-ruby 3.1.5
Installing dragonfly 0.9.15
Installing rdoc 3.12.2
Installing uglifier 2.5.1
Installing activemodel 3.2.18
Installing mail 2.5.4
Installing activerecord 3.2.18
Installing activeresource 3.2.18
Installing actionpack 3.2.18
Installing awesome_nested_set 2.1.6
Installing friendly_id 4.0.10.1
Installing globalize 3.1.0
Installing actionmailer 3.2.18
Installing routing-filter 0.3.1
Installing refinerycms-i18n 2.1.0
Installing railties 3.2.18
Installing coffee-rails 3.2.2
Installing decorators 1.0.3
Installing devise 2.2.8
Installing rails 3.2.18
Installing jquery-rails 2.3.0
Installing seo_meta 1.4.0
Installing sass-rails 3.2.6
Installing refinerycms-core 2.1.2
Installing refinerycms-dashboard 2.1.2
Installing refinerycms-authentication 2.1.2
Installing refinerycms-images 2.1.2
Installing refinerycms-resources 2.1.2
Installing refinerycms-pages 2.1.2
Installing refinerycms-acts-as-indexed 1.0.0
Installing refinerycms 2.1.2
Your bundle is complete!
Gems in the groups development and test were not installed.
It was installed into ./vendor/bundle
Post-install message from bcrypt-ruby:
#######################################################
The bcrypt-ruby gem has changed its name to just bcrypt. Instead of
installing `bcrypt-ruby`, you should install `bcrypt`. Please update your
dependencies accordingly.
#######################################################
Post-install message from rdoc:
Depending on your version of ruby, you may need to install ruby rdoc/ri data:
<= 1.8.6 : unsupported
= 1.8.7 : gem install rdoc-data; rdoc-data --install
= 1.9.1 : gem install rdoc-data; rdoc-data --install
>= 1.9.2 : nothing to do! Yay!
Post-install message from friendly_id:
NOTE: FriendlyId 4.x breaks compatibility with 3.x. If you're upgrading
from 3.x, please see this document:
http://rubydoc.info/github/norman/friendly_id/master/file/WhatsNew.md
Post-install message from globalize:
Globalize has extracted versioning support to a separate gem named
globalize-versioning. If you are using versioning (with paper_trail
or any other versioning gem), please add the line
"gem 'globalize-versioning'" to your Gemfile and go to the github
page at globalize/globalize-versioning if you encounter any problems.
Note that the globalize-versioning gem does not delegate versions to
the translation table, so you will have to update your syntax to
the form: `post.translation.versions`. See the globalize-versioning
readme for details.
Bundle completed (17.42s)
Cleaning up the bundler cache.
-----> Writing config/database.yml to read from DATABASE_URL
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /tmp/build_5d23c95e-376b-4495-829f-69495105c73c/Rakefile:7)
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /tmp/build_5d23c95e-376b-4495-829f-69495105c73c/Rakefile:7)
rake aborted!
LoadError: Please install the sqlite3 adapter: `gem install activerecord-sqlite3-adapter` (sqlite3 is not part of the bundle. Add it to Gemfile.)
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/bundler-1.6.3/lib/bundler/rubygems_integration.rb:252:in `block in replace_gem'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/sqlite3_adapter.rb:3:in `<top (required)>'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:251:in `require'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:251:in `block in require'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:236:in `load_dependency'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:251:in `require'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/connection_specification.rb:50:in `resolve_hash_connection'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/connection_specification.rb:41:in `resolve_string_connection'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/connection_specification.rb:27:in `spec'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/connection_specification.rb:130:in `establish_connection'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.18/lib/active_record/railtie.rb:88:in `block (2 levels) in <class:Railtie>'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/lazy_load_hooks.rb:26:in `block in on_load'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/lazy_load_hooks.rb:25:in `each'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/lazy_load_hooks.rb:25:in `on_load'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.18/lib/active_record/railtie.rb:80:in `block in <class:Railtie>'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/railties-3.2.18/lib/rails/initializable.rb:30:in `instance_exec'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/railties-3.2.18/lib/rails/initializable.rb:30:in `run'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/railties-3.2.18/lib/rails/initializable.rb:55:in `block in run_initializers'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/railties-3.2.18/lib/rails/initializable.rb:54:in `each'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/railties-3.2.18/lib/rails/initializable.rb:54:in `run_initializers'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/railties-3.2.18/lib/rails/application.rb:136:in `initialize!'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/railties-3.2.18/lib/rails/railtie/configurable.rb:30:in `method_missing'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/config/environment.rb:5:in `<top (required)>'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:251:in `require'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:251:in `block in require'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:236:in `load_dependency'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:251:in `require'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/railties-3.2.18/lib/rails/application.rb:103:in `require_environment!'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/railties-3.2.18/lib/rails/application.rb:305:in `block (2 levels) in initialize_tasks'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.18/lib/sprockets/assets.rake:93:in `block (2 levels) in <top (required)>'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.18/lib/sprockets/assets.rake:60:in `block (3 levels) in <top (required)>'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.18/lib/sprockets/assets.rake:23:in `invoke_or_reboot_rake_task'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.18/lib/sprockets/assets.rake:29:in `block (2 levels) in <top (required)>'
Tasks: TOP => environment
(See full trace by running task with --trace)
!
! Precompiling assets failed.
!
! Push rejected, failed to compile Ruby app
To git#heroku.com:secure-anchorage-3129.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git#heroku.com:secure-anchorage-3129.git'
ark#ark-Aspire-5750G:~/priroda$
Heroku doesn't do sqlite - it uses Postgres instead. See if you have sqlite gem in your Gemfile and if you do, try replacing it with something like this:
group :development do
gem 'sqlite3'
end
group :production do
gem 'pg'
end

ERROR: 'rake/rdoctask' is obsolete and no longer supported. Use 'rdoc/task' (available in RDoc 2.4.2+) instead

Seems the last post for this problem was closed for one reason or another so I'll try my luck...
I'm trying to run a simple "rake db:migrate" command. When I do, I get the error in the title. Yes, the solution "appears" obvious but it's not because I don't my Rakefile does not contain any references to 'rake/rdoctask'. It seems to be coming from documentation.rake but when I try to change that file as recommended by the error, I get a different error. I have found a couple of posts declaring this to be a known issue but nothing I've found indicates how to fix or work around this.
Does anyone have any ideas how to fix it? Below is the output from the rake command with a --trace:
$ rake --trace db:migrate
rake aborted!
ERROR: 'rake/rdoctask' is obsolete and no longer supported. Use 'rdoc/task' (available in RDoc 2.4.2+) instead.
C:/Programs/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.0.3/lib/rake/rdoctask.rb:1:in `<top (required)>'
C:/Programs/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.0.3/lib/rails/tasks/documentation.rake:2:in `require'
C:/Programs/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.0.3/lib/rails/tasks/documentation.rake:2:in `<top (required)>'
C:/Programs/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.0.3/lib/rails/tasks.rb:15:in `load'
C:/Programs/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.0.3/lib/rails/tasks.rb:15:in `block in <top (required)>'
C:/Programs/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.0.3/lib/rails/tasks.rb:6:in `each'
C:/Programs/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.0.3/lib/rails/tasks.rb:6:in `<top (required)>'
C:/Programs/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.0.3/lib/rails/application.rb:213:in `require'
C:/Programs/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.0.3/lib/rails/application.rb:213:in `initialize_tasks'
C:/Programs/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.0.3/lib/rails/application.rb:139:in `load_tasks'
C:/Programs/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.0.3/lib/rails/application.rb:77:in `method_missing'
C:/developer/skknobara/Rakefile:7:in `<top (required)>'
C:/Programs/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.0.3/lib/rake/rake_module.rb:25:in `load'
C:/Programs/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.0.3/lib/rake/rake_module.rb:25:in `load_rakefile'
C:/Programs/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.0.3/lib/rake/application.rb:583:in `raw_load_rakefile'
C:/Programs/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.0.3/lib/rake/application.rb:89:in `block in load_rakefile'
C:/Programs/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.0.3/lib/rake/application.rb:160:in `standard_exception_handling'
C:/Programs/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.0.3/lib/rake/application.rb:88:in `load_rakefile'
C:/Programs/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.0.3/lib/rake/application.rb:72:in `block in run'
C:/Programs/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.0.3/lib/rake/application.rb:160:in `standard_exception_handling'
C:/Programs/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.0.3/lib/rake/application.rb:70:in `run'
C:/Programs/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.0.3/bin/rake:33:in `<top (required)>'
C:/Programs/Ruby193/bin/rake:23:in `load'
C:/Programs/Ruby193/bin/rake:23:in `<main>'
I discovered that I had rails 3.0.3 in my Gemfile so I changed it to 3.2.9, but now when I run rake db:migrate I get:
rake aborted!
Bundler could not find compatible versions for gem "rack":
In Gemfile:
rails (= 3.2.9) x86-mingw32 depends on
rack (~> 1.4.0) x86-mingw32
rack (1.2.5)
I'm not sure what the error means but "gem list rack" shows I have both 1.4.1 and 1.4.0 installed. My Gemfile is pretty simple:
gem 'rails', '3.2.9'
gem 'rack','< 1.4.1'
gem 'mysql2', '< 0.3'
Any thoughts?
I had similar problem using rails 2.3.5 so as instructed in the trace message I have edited the Rakefile to require 'rdoc/task' instead of rake/rdoctask and installed rdoc gem.
If you are using rake version > 10.0.0 . please edit your Rakefile
from:
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'tasks/rails'
to:
require 'rake'
require 'rake/testtask'
require 'rdoc/task'
require 'tasks/rails'
If you don't want to edit the Rakefile you can switch back to older version of take like this
gem uninstall rake -v 10.0.3
gem install rake -v 0.8.7
I ran into similar problem when migrating my old app to rails 2.3.15. I solved it by installing an older version of rake, and uninstalling current 10.0.3 version:
gem install rake --version 0.8.7
gem uninstall rake --version 10.0.3
I got it to work by putting
gem 'rake', '0.9.2.2'
in my Gemfile and then running rake as
bundle exec rake db:migrate
I had to fix this while not breaking on places that have old rake but not rdoc installed. I added a begin...rescue clause:
begin
require 'rake/rdoctask'
rescue
require 'rdoc/task'
end
I came across the same issue...I did what GiridharBandi mentioned above:
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'tasks/rails'
to:
require 'rake'
require 'rake/testtask'
require 'rdoc/task'
require 'tasks/rails'
Rake version 10.0.4 was there in the gem list but when I tried to uninstall, it said that rake is not installed. So I ignored this and proceeded to install rake 0.8.7. Once its installed, I installed rdoc
gem install rdoc
<= 1.8.6 : unsupported
= 1.8.7 : gem install rdoc-data; rdoc-data --install
= 1.9.1 : gem install rdoc-data; rdoc-data --install
>= 1.9.2 : nothing to do! Yay!
and then everything started working just fine.
For rails 3.0.6, with the same kind of error:
ERROR: 'rake/rdoctask' is obsolete and no longer supported. Use 'rdoc/task' (available in RDoc 2.4.2+) instead.
I installed rake 0.9.2 and also rdoc. commented out the #require 'tasks/rails' and then everything started working. I think rake problem is resolved in rails > 3.2.9.
I had a similar problem recently.
Looks like the same problem as: Can't run any rake command: "ERROR: 'rake/rdoctask' is obsolete and no longer supported"
I solved it by upgrading to Rails 3.2.9.
Oh my god, I was figting with this for almost hour and finally here is my case (may help someone :) ):
I got myself multiple rails versions installed
so I just uninstalled the latest one as I want to use the most edgy one (the 4.0.1 for now)
so :
$ gem uninstall rails
and I got this:
Select gem to uninstall:
1. rails-0.9.5
2. rails-4.0.0
3. rails-4.0.1
4. All versions
>
so I selected first two and that was it :)
now everything is OK
hope this helps someone who got mysteriously stuck as me :(
Like the original poster, I don't have a require of rake/rdoctask.
Upgrading my rails is not an option. The answer is to keep your rake at 0.9.2.2 in your Gemfile.
This probably isn't the right way to do this, but I went into my Gemfile.lock file and changed my rake version back from 10.0.3 to 0.8.7. I'm running Rails 3.0.5 right now, and had updated briefly to 3.0.19 before reverting back. I believe that updated some gems and also made it so that the Rails gem was looking for the newest version greater than or equal to 0.8.7:
rails (3.0.5)
actionmailer (= 3.0.5)
actionpack (= 3.0.5)
activerecord (= 3.0.5)
activeresource (= 3.0.5)
activesupport (= 3.0.5)
bundler (~> 1.0)
railties (= 3.0.5)
railties (3.0.5)
actionpack (= 3.0.5)
activesupport (= 3.0.5)
rake (>= 0.8.7)
thor (~> 0.14.4)
rake (0.8.7)
I also uninstalled 10.0.3:
gem uninstall rake --version 10.0.3
After that, everything is back to running as it should.
If I didn't roll back rails 3.0.19, then I would have kept using rake 10.0.3.
Hope this helps someone!
I run into this whenever I have a Bundler-based project and I'm using Ruby 1.9.2. Eventually I figure out that Bundler isn't managing the rdoc gem, and all I have to do to fix the problem is include rdoc in the Gemfile (or the gemspec if Gemfile is already configured to use it) and run bundle install.
I never seem to run into this with 1.9.3 or 2.0.0, only 1.9.2.

Resources