rake aborted! no such file to load -- rush - ruby-on-rails

I am using using rails 2.3.5 , ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mingw32]
I am on windows machine,
The project has no .gem file, so i use rake gems:install, and rake db:create
upto the above step everything is working fine, but
when i run rake db:migrate --trace, i get the following error
** Execute environment
rake aborted!
no such file to load -- rush
D:/programfiles/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
D:/programfiles/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_su
pport/dependencies.rb:156:in `require'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_su
pport/dependencies.rb:521:in `new_constants_in'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_su
pport/dependencies.rb:156:in `require'
D:/workspace/ruby/education/fedena2.3inprogress/vendor/plugins/delayed_job/lib/d
elayed/worker.rb:1
D:/programfiles/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
D:/programfiles/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_su
pport/dependencies.rb:156:in `require'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_su
pport/dependencies.rb:521:in `new_constants_in'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_su
pport/dependencies.rb:156:in `require'
D:/workspace/ruby/education/fedena2.3inprogress/vendor/plugins/delayed_job/lib/d
elayed_job.rb:6
D:/programfiles/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
D:/programfiles/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_su
pport/dependencies.rb:156:in `require'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_su
pport/dependencies.rb:521:in `new_constants_in'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_su
pport/dependencies.rb:156:in `require'
D:/workspace/ruby/education/fedena2.3inprogress/vendor/plugins/delayed_job/init.
rb:1:in `evaluate_init_rb'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin.rb:1
58:in `evaluate_init_rb'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_su
pport/core_ext/kernel/reporting.rb:11:in `silence_warnings'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin.rb:1
54:in `evaluate_init_rb'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin.rb:4
8:in `load'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin/load
er.rb:38:in `load_plugins'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin/load
er.rb:37:in `each'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin/load
er.rb:37:in `load_plugins'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:36
9:in `load_plugins'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:16
5:in `process'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:11
3:in `send'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:11
3:in `run'
D:/workspace/ruby/education/fedena2.3inprogress/config/environment.rb:6
D:/programfiles/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
D:/programfiles/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_su
pport/dependencies.rb:156:in `require'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_su
pport/dependencies.rb:521:in `new_constants_in'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_su
pport/dependencies.rb:156:in `require'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/tasks/misc.rake:4
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205
:in `call'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205
:in `execute'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200
:in `each'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200
:in `execute'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:158
:in `invoke_with_call_chain'
D:/programfiles/Ruby187/lib/ruby/1.8/monitor.rb:242:in `synchronize'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:151
:in `invoke_with_call_chain'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:176
:in `invoke_prerequisites'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:174
:in `each'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:174
:in `invoke_prerequisites'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:157
:in `invoke_with_call_chain'
D:/programfiles/Ruby187/lib/ruby/1.8/monitor.rb:242:in `synchronize'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:151
:in `invoke_with_call_chain'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:144
:in `invoke'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application
.rb:116:in `invoke_task'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application
.rb:94:in `top_level'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application
.rb:94:in `each'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application
.rb:94:in `top_level'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application
.rb:133:in `standard_exception_handling'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application
.rb:88:in `top_level'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application
.rb:66:in `run'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application
.rb:133:in `standard_exception_handling'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application
.rb:63:in `run'
D:/programfiles/Ruby187/lib/ruby/gems/1.8/gems/rake-0.9.2.2/bin/rake:33
D:/programfiles/Ruby187/bin/rake:19:in `load'
D:/programfiles/Ruby187/bin/rake:19
Tasks: TOP => db:migrate => environment

Seems your application requires the gem rush [http://rubygems.org/gems/rush], which is missing. Follow the url to install it and try again.
Yes, bundle install should make sure to install all required gems in your system.
gem install rush, works or add gem rush to your gem file and then run bundle install (if you use bundler)

Related

uninitialized constant Rails::Plugin::Authorization when run `rake db:migrate`

I was populating a rails application fedena database with the command rake db:migrate, I am getting an error:
rake aborted! uninitialized constant Rails::Plugin::Authorization
when I tried to run the rake command with --trace I got the following:
** Execute environment
rake aborted!
uninitialized constant Rails::Plugin::Authorization
/usr/local/rvm/gems/ruby-1.8.7-head/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:105:in `const_missing'
/mnt/c/users/usrx/Documents/myapp/app/vendor/plugins/acts_as_multi_school/init.rb:15:in `evaluate_init_rb'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rails-2.3.5/lib/rails/plugin.rb:158:in `evaluate_init_rb'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/activesupport-2.3.5/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rails-2.3.5/lib/rails/plugin.rb:154:in `evaluate_init_rb'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rails-2.3.5/lib/rails/plugin.rb:48:in `load'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rails-2.3.5/lib/rails/plugin/loader.rb:38:in `load_plugins'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rails-2.3.5/lib/rails/plugin/loader.rb:37:in `each'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rails-2.3.5/lib/rails/plugin/loader.rb:37:in `load_plugins'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rails-2.3.5/lib/initializer.rb:369:in `load_plugins'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rails-2.3.5/lib/initializer.rb:165:in `process'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rails-2.3.5/lib/initializer.rb:113:in `send'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rails-2.3.5/lib/initializer.rb:113:in `run'
/mnt/c/users/userx/Documents/myapp/app/config/environment.rb:5
/usr/local/rvm/gems/ruby-1.8.7-head/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `gem_original_require'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rails-2.3.5/lib/tasks/misc.rake:4
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain'
/usr/local/rvm/rubies/ruby-1.8.7-head/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain'
/usr/local/rvm/rubies/ruby-1.8.7-head/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/usr/local/rvm/gems/ruby-1.8.7-head/gems/rake-0.8.7/bin/rake:31
/usr/local/rvm/gems/ruby-1.8.7-head/bin/rake:19:in `load'
/usr/local/rvm/gems/ruby-1.8.7-head/bin/rake:19
/usr/local/rvm/gems/ruby-1.8.7-head/bin/ruby_executable_hooks:22
I think the line causing the error is in the file init.rb which is:
Authorization::AUTH_DSL_FILES << "#{RAILS_ROOT}/vendor/plugins/acts_as_multi_school/config/acts_as_multi_school_auth.rb"
and I do not know how can this be solved!

LoadError: cannot load such file -- rails_helper (Rails 6 and Rspec)

I am trying to write rspec tests for a rails 6 project.
When I run
rspec spec/controllers/user_spec.rb
I get this error
Migrations are pending. To resolve this issue,
run:rails db:migrate RAILS_ENV=test
No examples found.
So I run
rails db:migrate RAILS_ENV=test
and then I get this error
rails aborted!
LoadError: cannot load such file -- rails_helper
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:89:in `register'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:40:in `rescue in require'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:26:in `require'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/zeitwerk-2.2.1/lib/zeitwerk/kernel.rb:23:in `require'
/Users/MacBookAir/workspace/squealer/spec/factories/devise.rb:1:in `<main>'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:54:in `load'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:54:in `load'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/factory_bot-5.1.1/lib/factory_bot/find_definitions.rb:20:in `block (2 levels) in find_definitions'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/factory_bot-5.1.1/lib/factory_bot/find_definitions.rb:19:in `each'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/factory_bot-5.1.1/lib/factory_bot/find_definitions.rb:19:in `block in find_definitions'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/factory_bot-5.1.1/lib/factory_bot/find_definitions.rb:15:in `each'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/factory_bot-5.1.1/lib/factory_bot/find_definitions.rb:15:in `find_definitions'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/factory_bot-5.1.1/lib/factory_bot/reload.rb:6:in `reload'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/factory_bot_rails-5.1.1/lib/factory_bot_rails/railtie.rb:26:in `block in <class:Railtie>'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/lazy_load_hooks.rb:69:in `block in execute_hook'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/lazy_load_hooks.rb:62:in `with_execution_control'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/lazy_load_hooks.rb:67:in `execute_hook'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/lazy_load_hooks.rb:52:in `block in run_load_hooks'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/lazy_load_hooks.rb:51:in `each'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/lazy_load_hooks.rb:51:in `run_load_hooks'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/railties-6.0.1/lib/rails/application/finisher.rb:129:in `block in <module:Finisher>'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/railties-6.0.1/lib/rails/initializable.rb:32:in `instance_exec'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/railties-6.0.1/lib/rails/initializable.rb:32:in `run'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/railties-6.0.1/lib/rails/initializable.rb:61:in `block in run_initializers'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/railties-6.0.1/lib/rails/initializable.rb:60:in `run_initializers'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/railties-6.0.1/lib/rails/application.rb:363:in `initialize!'
/Users/MacBookAir/workspace/squealer/config/environment.rb:14:in `<main>'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/zeitwerk-2.2.1/lib/zeitwerk/kernel.rb:23:in `require'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/dependencies.rb:325:in `block in require'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/dependencies.rb:291:in `load_dependency'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/dependencies.rb:325:in `require'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/railties-6.0.1/lib/rails/application.rb:339:in `require_environment!'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/railties-6.0.1/lib/rails/application.rb:515:in `block in run_tasks_blocks'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/railties-6.0.1/lib/rails/commands/rake/rake_command.rb:23:in `block in perform'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/railties-6.0.1/lib/rails/commands/rake/rake_command.rb:20:in `perform'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/railties-6.0.1/lib/rails/command.rb:48:in `invoke'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/railties-6.0.1/lib/rails/commands.rb:18:in `<main>'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/dependencies.rb:325:in `block in require'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/dependencies.rb:291:in `load_dependency'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/dependencies.rb:325:in `require'
/Users/MacBookAir/workspace/squealer/bin/rails:9:in `<top (required)>'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/spring-2.1.0/lib/spring/client/rails.rb:28:in `load'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/spring-2.1.0/lib/spring/client/rails.rb:28:in `call'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/spring-2.1.0/lib/spring/client/command.rb:7:in `call'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/spring-2.1.0/lib/spring/client.rb:30:in `run'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/spring-2.1.0/bin/spring:49:in `<top (required)>'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/spring-2.1.0/lib/spring/binstub.rb:11:in `load'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/spring-2.1.0/lib/spring/binstub.rb:11:in `<top (required)>'
/Users/MacBookAir/workspace/squealer/bin/spring:15:in `<top (required)>'
bin/rails:3:in `load'
bin/rails:3:in `<main>'
Caused by:
Bootsnap::LoadPathCache::FallbackScan:
Tasks: TOP => db:migrate => db:load_config => environment
(See full trace by running task with --trace)
So then I remove the bootsnap gem and go to config/boot.rb and remove this line
require 'bootsnap/setup'
Then I run bundle install and then try to run rails db:migrate RAILS_ENV=test once more.
I get another error
rails aborted!
LoadError: cannot load such file -- rails_helper
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/zeitwerk-2.2.1/lib/zeitwerk/kernel.rb:23:in `require'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/zeitwerk-2.2.1/lib/zeitwerk/kernel.rb:23:in `require'
/Users/MacBookAir/workspace/squealer/spec/factories/devise.rb:1:in `<top (required)>'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/factory_bot-5.1.1/lib/factory_bot/find_definitions.rb:20:in `load'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/factory_bot-5.1.1/lib/factory_bot/find_definitions.rb:20:in `block (2 levels) in find_definitions'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/factory_bot-5.1.1/lib/factory_bot/find_definitions.rb:19:in `each'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/factory_bot-5.1.1/lib/factory_bot/find_definitions.rb:19:in `block in find_definitions'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/factory_bot-5.1.1/lib/factory_bot/find_definitions.rb:15:in `each'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/factory_bot-5.1.1/lib/factory_bot/find_definitions.rb:15:in `find_definitions'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/factory_bot-5.1.1/lib/factory_bot/reload.rb:6:in `reload'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/factory_bot_rails-5.1.1/lib/factory_bot_rails/railtie.rb:26:in `block in <class:Railtie>'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/lazy_load_hooks.rb:69:in `block in execute_hook'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/lazy_load_hooks.rb:62:in `with_execution_control'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/lazy_load_hooks.rb:67:in `execute_hook'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/lazy_load_hooks.rb:52:in `block in run_load_hooks'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/lazy_load_hooks.rb:51:in `each'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/lazy_load_hooks.rb:51:in `run_load_hooks'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/railties-6.0.1/lib/rails/application/finisher.rb:129:in `block in <module:Finisher>'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/railties-6.0.1/lib/rails/initializable.rb:32:in `instance_exec'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/railties-6.0.1/lib/rails/initializable.rb:32:in `run'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/railties-6.0.1/lib/rails/initializable.rb:61:in `block in run_initializers'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/railties-6.0.1/lib/rails/initializable.rb:60:in `run_initializers'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/railties-6.0.1/lib/rails/application.rb:363:in `initialize!'
/Users/MacBookAir/workspace/squealer/config/environment.rb:14:in `<top (required)>'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/zeitwerk-2.2.1/lib/zeitwerk/kernel.rb:23:in `require'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/zeitwerk-2.2.1/lib/zeitwerk/kernel.rb:23:in `require'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/dependencies.rb:325:in `block in require'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/dependencies.rb:291:in `load_dependency'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/dependencies.rb:325:in `require'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/railties-6.0.1/lib/rails/application.rb:339:in `require_environment!'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/railties-6.0.1/lib/rails/application.rb:515:in `block in run_tasks_blocks'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/railties-6.0.1/lib/rails/commands/rake/rake_command.rb:23:in `block in perform'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/railties-6.0.1/lib/rails/commands/rake/rake_command.rb:20:in `perform'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/railties-6.0.1/lib/rails/command.rb:48:in `invoke'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/railties-6.0.1/lib/rails/commands.rb:18:in `<top (required)>'
/Users/MacBookAir/workspace/squealer/bin/rails:9:in `require'
/Users/MacBookAir/workspace/squealer/bin/rails:9:in `<top (required)>'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/spring-2.1.0/lib/spring/client/rails.rb:28:in `load'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/spring-2.1.0/lib/spring/client/rails.rb:28:in `call'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/spring-2.1.0/lib/spring/client/command.rb:7:in `call'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/spring-2.1.0/lib/spring/client.rb:30:in `run'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/spring-2.1.0/bin/spring:49:in `<top (required)>'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/spring-2.1.0/lib/spring/binstub.rb:11:in `load'
/Users/MacBookAir/.rvm/gems/ruby-2.6.3/gems/spring-2.1.0/lib/spring/binstub.rb:11:in `<top (required)>'
/Users/MacBookAir/workspace/squealer/bin/spring:15:in `<top (required)>'
bin/rails:3:in `load'
bin/rails:3:in `<main>'
Tasks: TOP => db:migrate => db:load_config => environment
(See full trace by running task with --trace)
At this point, I am ready to toss my laptop into the trash. I don't even know what the zeitwerk gem is or what a thread safe code loader does. I just know it's required for Rails 6.
My github repo is here
Does anyone know what I am doing wrong?
Ah - I figured it out. I didn't read my error logs carefully.
I am using the Devise gem. In my error logs, the 8th line down mentioned a file in spec/factories/devise.rb
I looked at that file and saw that I had placed
require 'rails_helper.rb' at the top of the file.
I removed that line and now I can run
rails db:migrate RAILS_ENV=TEST
Guess this is a lesson in reading the error logs carefully
I just went through your repo. You actually don't have a rails_helper file. You should do a find and replace for rails_helper, replacing it with test_helper

rake aborted! no such file to load -- validatable (See full trace by running task with --trace)

I am installing a Ruby on Rails web application and am facing a problem when applying the rake db:migrate command.
rake db:migrate causes the mention error, the full trace is below:
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require'
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in'
C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
D:/Ansi/ansi_smspro342/vendor/plugins/fedena_oauth2_provider/lib/oauth2/provider/model_base.rb:3
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require'
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in'
C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
D:/Ansi/ansi_smspro342/vendor/plugins/fedena_oauth2_provider/lib/fedena_oauth2_provider.rb:6
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require'
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in'
C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
D:/Ansi/ansi_smspro342/vendor/plugins/fedena_oauth2_provider/init.rb:5:in `evaluate_init_rb'
C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin.rb:158:in `evaluate_init_rb'
C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin.rb:154:in `evaluate_init_rb'
C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin.rb:48:in `load'
C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin/loader.rb:38:in `load_plugins'
C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin/loader.rb:37:in `each'
C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin/loader.rb:37:in `load_plugins'
C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:369:in `load_plugins'
C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:165:in `process'
C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `send'
C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `run'
D:/Ansi/ansi_smspro342/config/environment.rb:5
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require'
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in'
C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/tasks/misc.rake:4
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain'
C:/Ruby187/lib/ruby/1.8/monitor.rb:242:in `synchronize'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain'
C:/Ruby187/lib/ruby/1.8/monitor.rb:242:in `synchronize'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
Thanks in advance!
gem validatable is over 6 years old, so I am afraid to ask, what Rails version this project has.
Anyway, install the gem validatable (or run bundle install, if you did not) and migration should pass.
ok I resolved the problem by installing the gem validatable.

Rake aborted - Unable to find platform. How to resolve?

when I try to install my Ruby on Rails App, exactly when I digit:
sudo rake db:migrate
terminal returns to me:
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
Unable to find Platform
/Users/ladmin/Sites/IkarosGest/vendor/plugins/wicked_pdf/lib/wicked_pdf.rb:17
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
/Users/ladmin/Sites/IkarosGest/vendor/plugins/wicked_pdf/init.rb:1:in `evaluate_init_rb'
/Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/rails/plugin.rb:158:in `evaluate_init_rb'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
/Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/rails/plugin.rb:154:in `evaluate_init_rb'
/Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/rails/plugin.rb:48:in `load'
/Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/rails/plugin/loader.rb:38:in `load_plugins'
/Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/rails/plugin/loader.rb:37:in `each'
/Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/rails/plugin/loader.rb:37:in `load_plugins'
/Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/initializer.rb:369:in `load_plugins'
/Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/initializer.rb:165:in `process'
/Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `send'
/Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `run'
/Users/ladmin/Sites/IkarosGest/config/environment.rb:6
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
/Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/tasks/misc.rake:4
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:205:in `call'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:205:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:200:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:200:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:158:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:176:in `invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:174:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:174:in `invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:157:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:144:in `invoke'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:112:in `invoke_task'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:90:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:90:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:90:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:84:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:62:in `run'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:59:in `run'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/bin/rake:32
/usr/bin/rake:19:in `load'
/usr/bin/rake:19
Tasks: TOP => db:migrate => environment
Resolved it! The problem was in "wickedpdf.rb" in this piece of code:
if Platform.is_windows?
include Win32PdfRenderer
elsif Platform.is_linux?
include NixPdfRenderer
else
raise "Unable to find Platform"
end
because I'm on Mac :D
Don't use sudo for rake db:migrate.

undefined method `name' for "Ascii85":String in rails

I am having the existing source code in rails 2.3.2, while running rake gems:install it shows the error like "undefined method `name' for "Ascii85":String".
I think it is the problem due to rubygems version. I am using ruby 1.8.7, rails 2.3.2, gem 1.3.7.
Update:
Now I solved the above problem by running sudo rake gems:install but now my problem is while running the rake db:migtare
Missing these required gems:
activemerchant = 1.4.1
You're running:
ruby 1.8.7.299 at /usr/bin/ruby1.8
rubygems 1.3.6 at /home/fstech/.rvm/gems/ruby-1.8.7-p302, /home/fstech/.rvm/gems/ruby-1.8.7-p302#global
Run `rake gems:install` to install the missing gems.
But i have already installed the activemerchant gem, here is the gem list
fstech#Blrfstech12:~/workspace/ff$ sudo gem list activemerchant
*** LOCAL GEMS ***
activemerchant (1.15.0, 1.4.1)
fstech#Blrfstech12:~/workspace/ff$
rake gems:install --trace
fstech#Blrfstech12:~/workspace/ff$ rake gems:install --trace
rake/rdoctask is deprecated. Use rdoc/task instead (in RDoc 2.4.2+)
** Invoke gems:install (first_time)
** Invoke gems:base (first_time)
** Execute gems:base
** Invoke environment (first_time)
** Execute environment
RubyGem version error: activesupport(2.2.2 not = 3.0.9)
/usr/local/lib/site_ruby/1.8/rubygems.rb:777:in `report_activate_error'
/usr/local/lib/site_ruby/1.8/rubygems.rb:211:in `activate'
/usr/local/lib/site_ruby/1.8/rubygems.rb:246:in `activate'
/usr/local/lib/site_ruby/1.8/rubygems.rb:245:in `each'
/usr/local/lib/site_ruby/1.8/rubygems.rb:245:in `activate'
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:35:in `require'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/acts_as_ferret-0.5.2/lib/acts_as_ferret/railtie.rb:2
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/acts_as_ferret-0.5.2/lib/acts_as_ferret.rb:92
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rails-2.3.2/lib/rails/gem_dependency.rb:179:in `load'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rails-2.3.2/lib/initializer.rb:305:in `load_gems'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rails-2.3.2/lib/initializer.rb:305:in `each'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rails-2.3.2/lib/initializer.rb:305:in `load_gems'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rails-2.3.2/lib/initializer.rb:167:in `process'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rails-2.3.2/lib/initializer.rb:113:in `send'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rails-2.3.2/lib/initializer.rb:113:in `run'
/home/fstech/workspace/ff/config/environment.rb:22
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rails-2.3.2/lib/tasks/misc.rake:4
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/task.rb:205:in `call'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/task.rb:205:in `execute'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/task.rb:200:in `each'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/task.rb:200:in `execute'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/task.rb:158:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/task.rb:144:in `invoke'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rails-2.3.2/lib/tasks/gems.rake:17
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/task.rb:205:in `call'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/task.rb:205:in `execute'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/task.rb:200:in `each'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/task.rb:200:in `execute'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/task.rb:158:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/task.rb:176:in `invoke_prerequisites'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/task.rb:174:in `each'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/task.rb:174:in `invoke_prerequisites'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/task.rb:157:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/task.rb:144:in `invoke'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/application.rb:112:in `invoke_task'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/application.rb:90:in `top_level'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/application.rb:90:in `each'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/application.rb:90:in `top_level'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/application.rb:84:in `top_level'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/application.rb:62:in `run'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/application.rb:59:in `run'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/bin/rake:32
/home/fstech/.rvm/gems/ruby-1.8.7-p302/bin/rake:19:in `load'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/bin/rake:19
no such file to load -- faraday
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/faraday_middleware-0.6.5/lib/faraday_middleware.rb:1
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/twitter-1.6.0/lib/twitter/connection.rb:1
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/twitter-1.6.0/lib/twitter/api.rb:3
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/twitter-1.6.0/lib/twitter.rb:1
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rails-2.3.2/lib/rails/gem_dependency.rb:179:in `load'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rails-2.3.2/lib/initializer.rb:305:in `load_gems'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rails-2.3.2/lib/initializer.rb:305:in `each'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rails-2.3.2/lib/initializer.rb:305:in `load_gems'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rails-2.3.2/lib/initializer.rb:167:in `process'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rails-2.3.2/lib/initializer.rb:113:in `send'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rails-2.3.2/lib/initializer.rb:113:in `run'
/home/fstech/workspace/ff/config/environment.rb:22
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rails-2.3.2/lib/tasks/misc.rake:4
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/task.rb:205:in `call'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/task.rb:205:in `execute'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/task.rb:200:in `each'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/task.rb:200:in `execute'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/task.rb:158:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/task.rb:144:in `invoke'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rails-2.3.2/lib/tasks/gems.rake:17
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/task.rb:205:in `call'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/task.rb:205:in `execute'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/task.rb:200:in `each'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/task.rb:200:in `execute'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/task.rb:158:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/task.rb:176:in `invoke_prerequisites'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/task.rb:174:in `each'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/task.rb:174:in `invoke_prerequisites'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/task.rb:157:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/task.rb:144:in `invoke'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/application.rb:112:in `invoke_task'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/application.rb:90:in `top_level'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/application.rb:90:in `each'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/application.rb:90:in `top_level'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/application.rb:84:in `top_level'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/application.rb:62:in `run'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/lib/rake/application.rb:59:in `run'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.9.2/bin/rake:32
/home/fstech/.rvm/gems/ruby-1.8.7-p302/bin/rake:19:in `load'
/home/fstech/.rvm/gems/ruby-1.8.7-p302/bin/rake:19
** Execute gems:install
gem install activemerchant --version "= 1.4.1"
Successfully installed activemerchant-1.4.1
1 gem installed
Installing ri documentation for activemerchant-1.4.1...
Installing RDoc documentation for activemerchant-1.4.1...
What is the problem?
I don't feel competent enough to help you directly with these gems, but I suspect that you have run (and will run) into problems because of various versions of installed gems. I know that gems were designed to help in that, but...
You may want to try to use bundler to help you manage the versions of gems. See an article http://blog.tag.ca/using-bundler-with-rails-2 . I haven't tested it myself (because I have skipped from Rails 1 directly to Rails 3), but it may save you a lot of troubles.

Resources