Rake aborted - Unable to find platform. How to resolve? - ruby-on-rails

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.

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!

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.

Trying to set up Radiant CMS: RedCloth is not a class

I'm trying to install Radiant CMS but whenever I run:
rake db:bootstrap
Inside the project directory I get:
rake aborted!
RedCloth is not a class
Here is the full trace:
(in /Users/richardjburton/testradiant)
** Invoke db:bootstrap (first_time)
** Invoke db:remigrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
RedCloth is not a class
/Users/richardjburton/testradiant/vendor/radiant/vendor/redcloth/lib/redcloth.rb:167
/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'
/Users/richardjburton/testradiant/vendor/radiant/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/richardjburton/testradiant/vendor/radiant/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/Users/richardjburton/testradiant/vendor/radiant/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/richardjburton/testradiant/vendor/radiant/lib/radiant/initializer.rb:98:in `library_directories'
/Users/richardjburton/testradiant/vendor/radiant/lib/radiant/initializer.rb:134:in `default_load_paths'
/Users/richardjburton/testradiant/vendor/radiant/vendor/rails/railties/lib/initializer.rb:839:in `initialize'
/Users/richardjburton/testradiant/vendor/radiant/lib/radiant/initializer.rb:21:in `initialize'
/Users/richardjburton/testradiant/vendor/radiant/lib/radiant/initializer.rb:155:in `new'
/Users/richardjburton/testradiant/vendor/radiant/lib/radiant/initializer.rb:155:in `run'
/Users/richardjburton/testradiant/config/environment.rb:12
/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'
/Users/richardjburton/testradiant/vendor/radiant/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/richardjburton/testradiant/vendor/radiant/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/Users/richardjburton/testradiant/vendor/radiant/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/richardjburton/testradiant/vendor/radiant/vendor/rails/railties/lib/tasks/misc.rake:4
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:597: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.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:596: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.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:596: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.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19
I'm guessing you don't have redcloth installed on that machine.
sudo if you normally do
gem install redcloth
I believe that should be:
gem install RedCloth
I didn't have XCode installed on my mac. Whoops!
You need Recloth gem, so that Radiant is able to use Textile markup

How to read trace for a failed Rails migration related to Lockdown gem

More often than not, when i get an error the trace will point to a line in my own code. I'll go to that line, find the error and fix it.
However, right now the trace is pointing to Rails and gem code, and I'm not sure how to use it to debug my work.
I've been following the steps listed here.
When I run rake db:migrate --trace, I get the trace shown below. I'm not asking anyone to debug it for me, but I'd appreciate any pointers to what you would look for when debugging this.
rake db:migrate --trace
(in /Users/steven/Drominay)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
=> Mixing in Lockdown version: 1.6.2
rake aborted!
uninitialized constant Lockdown::Frameworks::Rails::Environment::ApplicationController
/Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:442:in `load_missing_constant'
/Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:77:in `const_missing'
/Library/Ruby/Gems/1.8/gems/lockdown-1.6.2/lib/lockdown/frameworks/rails.rb:70:in `controller_parent'
/Library/Ruby/Gems/1.8/gems/lockdown-1.6.2/lib/lockdown/frameworks/rails.rb:29:in `mixin_controller'
/Library/Ruby/Gems/1.8/gems/lockdown-1.6.2/lib/lockdown/frameworks/rails.rb:18:in `mixin'
/Library/Ruby/Gems/1.8/gems/lockdown-1.6.2/lib/lockdown/frameworks/rails.rb:14:in `included'
/Library/Ruby/Gems/1.8/gems/lockdown-1.6.2/lib/lockdown.rb:72:in `include'
/Library/Ruby/Gems/1.8/gems/lockdown-1.6.2/lib/lockdown.rb:72:in `mixin_resource?'
/Library/Ruby/Gems/1.8/gems/lockdown-1.6.2/lib/lockdown.rb:67:in `each'
/Library/Ruby/Gems/1.8/gems/lockdown-1.6.2/lib/lockdown.rb:67:in `mixin_resource?'
/Library/Ruby/Gems/1.8/gems/lockdown-1.6.2/lib/lockdown.rb:43:in `mixin'
/Library/Ruby/Gems/1.8/gems/lockdown-1.6.2/lib/lockdown.rb:85
/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'
/Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:155:in `require'
/Users/steven/Drominay/config/initializers/lockit.rb:1
/Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:144:in `load_without_new_constant_marking'
/Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:144:in `load'
/Users/steven/.gem/ruby/1.8/gems/rails-2.2.2/lib/initializer.rb:550:in `load_application_initializers'
/Users/steven/.gem/ruby/1.8/gems/rails-2.2.2/lib/initializer.rb:549:in `each'
/Users/steven/.gem/ruby/1.8/gems/rails-2.2.2/lib/initializer.rb:549:in `load_application_initializers'
/Users/steven/.gem/ruby/1.8/gems/rails-2.2.2/lib/initializer.rb:167:in `process'
/Users/steven/.gem/ruby/1.8/gems/rails-2.2.2/lib/initializer.rb:112:in `send'
/Users/steven/.gem/ruby/1.8/gems/rails-2.2.2/lib/initializer.rb:112:in `run'
/Users/steven/Drominay/config/environment.rb:14
/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'
/Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require'
/Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
/Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require'
/Users/steven/.gem/ruby/1.8/gems/rails-2.2.2/lib/tasks/misc.rake:3
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:597: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.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:596: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.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19
Fixed by changing application.rb to application_controller.rb, as per this article.
(Still interested in how to practically use this trace however.)

Clean install of Ubuntu Karmic, Ruby 1.8.7 (2009-04-08 patchlevel 160), jkraemer-acts_as_ferret (0.4.4), Rails 2.3.4 -- Errors with AAF

I have a fresh install of Ubuntu Karmic, Ruby and Rails. I checkout out a working (production) application. Created the databases and ran the rake tasks. Made sure I had all the required gems of which acts_as_ferret by Jens Krämer was one of them.
Everything appears to be installed correctly.
The gems are listed in environment.rb including AFF.
When I run rake I get the following error:
no such file to load -- ferret
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:156:in `require'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:521:in `new_constants_in'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:156:in `require'
/usr/local/lib/ruby/gems/1.8/gems/jkraemer-acts_as_ferret-0.4.4/lib/acts_as_ferret.rb:25
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:156:in `require'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:521:in `new_constants_in'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:156:in `require'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/rails/gem_dependency.rb:208:in `load'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:307:in `load_gems'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:307:in `each'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:307:in `load_gems'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:164:in `process'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:113:in `send'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:113:in `run'
/home/pp/ruby-dev/production-app/config/environment.rb:18
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:156:in `require'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:521:in `new_constants_in'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:156:in `require'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/tasks/misc.rake:4
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain'
/usr/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain'
/usr/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain'
/usr/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
/usr/local/bin/rake:19:in `load'
/usr/local/bin/rake:19
no such file to load -- ferret
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:156:in `require'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:521:in `new_constants_in'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:156:in `require'
/usr/local/lib/ruby/gems/1.8/gems/jkraemer-acts_as_ferret-0.4.4/lib/acts_as_ferret.rb:25
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:156:in `require'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:521:in `new_constants_in'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:156:in `require'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/rails/gem_dependency.rb:208:in `load'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:307:in `load_gems'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:307:in `each'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:307:in `load_gems'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:169:in `process'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:113:in `send'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:113:in `run'
/home/pp/ruby-dev/production-app/config/environment.rb:18
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:156:in `require'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:521:in `new_constants_in'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:156:in `require'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/tasks/misc.rake:4
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain'
/usr/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain'
/usr/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain'
/usr/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
/usr/local/bin/rake:19:in `load'
/usr/local/bin/rake:19
Missing these required gems:
jkraemer-acts_as_ferret ~> 0.4.4
You're running:
ruby 1.8.7.160 at /usr/local/bin/ruby
rubygems 1.3.5 at /home/pp/.gem/ruby/1.8, /usr/local/lib/ruby/gems/1.8
Run `rake gems:install` to install the missing gems./usr/local/lib/ruby/gems/1.8/gems/jkraemer-acts_as_ferret-0.4.4/lib/acts_as_ferret.rb:25
I have no idea what is going on?
Your post is not the best piper?
From what I can see and having used AAF before just try installing ferret
sudo gem install ferret
You can find a good tutorial here:
http://railsenvy.com/2007/2/19/acts-as-ferret-tutorial

Resources