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.
Related
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.
I was setting up canvas-lms on ubuntu and in the end while populating the database with bundle exec rake db:initial_setup I got "rake aborted! Configuration is not a module" error . What should I do to fix this error?
This is the error:
Command : bundle exec rake db:initial_setup --trace
Error :
** Invoke db:initial_setup (first_time)
** Invoke db:generate_security_key (first_time)
** Execute db:generate_security_key
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
Configuration is not a module
/usr/lib/ruby/vendor_ruby/rails/configuration.rb:8:in `<module:Rails>'
/usr/lib/ruby/vendor_ruby/rails/configuration.rb:7:in `<top (required)>'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/activesupport/lib/active_support/dependencies.rb:182:in `require'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/activesupport/lib/active_support/dependencies.rb:182:in `block in require'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/activesupport/lib/active_support/dependencies.rb:547:in `new_constants_in'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/activesupport/lib/active_support/dependencies.rb:182:in `require'
/usr/lib/ruby/vendor_ruby/rails/railtie.rb:2:in `<top (required)>'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/activesupport/lib/active_support/dependencies.rb:182:in `require'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/activesupport/lib/active_support/dependencies.rb:182:in `block in require'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/activesupport/lib/active_support/dependencies.rb:547:in `new_constants_in'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/activesupport/lib/active_support/dependencies.rb:182:in `require'
/usr/lib/ruby/vendor_ruby/rails/engine.rb:1:in `<top (required)>'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/activesupport/lib/active_support/dependencies.rb:182:in `require'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/activesupport/lib/active_support/dependencies.rb:182:in `block in require'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/activesupport/lib/active_support/dependencies.rb:547:in `new_constants_in'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/activesupport/lib/active_support/dependencies.rb:182:in `require'
/usr/lib/ruby/vendor_ruby/rails/application.rb:4:in `<top (required)>'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/activesupport/lib/active_support/dependencies.rb:182:in `require'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/activesupport/lib/active_support/dependencies.rb:182:in `block in require'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/activesupport/lib/active_support/dependencies.rb:547:in `new_constants_in'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/activesupport/lib/active_support/dependencies.rb:182:in `require'
/usr/lib/ruby/vendor_ruby/rails.rb:10:in `<top (required)>'
/var/lib/gems/1.9.1/gems/bundler-1.5.3/lib/bundler/runtime.rb:76:in `require'
/var/lib/gems/1.9.1/gems/bundler-1.5.3/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
/var/lib/gems/1.9.1/gems/bundler-1.5.3/lib/bundler/runtime.rb:72:in `each'
/var/lib/gems/1.9.1/gems/bundler-1.5.3/lib/bundler/runtime.rb:72:in `block in require'
/var/lib/gems/1.9.1/gems/bundler-1.5.3/lib/bundler/runtime.rb:61:in `each'
/var/lib/gems/1.9.1/gems/bundler-1.5.3/lib/bundler/runtime.rb:61:in `require'
/var/lib/gems/1.9.1/gems/bundler-1.5.3/lib/bundler.rb:131:in `require'
/home/knolskape/ror/canvas/canvas/config/boot.rb:53:in `load_gems'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/railties/lib/initializer.rb:167:in `process'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/railties/lib/initializer.rb:114:in `run'
/home/knolskape/ror/canvas/canvas/config/environment.rb:32:in `<top (required)>'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/activesupport/lib/active_support/dependencies.rb:182:in `require'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/activesupport/lib/active_support/dependencies.rb:182:in `block in require'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/activesupport/lib/active_support/dependencies.rb:547:in `new_constants_in'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/activesupport/lib/active_support/dependencies.rb:182:in `require'
/var/lib/gems/1.9.1/bundler/gems/rails-e86daf8ff727/railties/lib/tasks/misc.rake:4:in `block in <top (required)>'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:236:in `call'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:236:in `block in execute'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:231:in `each'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:231:in `execute'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:175:in `block in invoke_with_call_chain'
/usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:168:in `invoke_with_call_chain'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:197:in `block in invoke_prerequisites'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:195:in `each'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:195:in `invoke_prerequisites'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:174:in `block in invoke_with_call_chain'
/usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:168:in `invoke_with_call_chain'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:197:in `block in invoke_prerequisites'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:195:in `each'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:195:in `invoke_prerequisites'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:174:in `block in invoke_with_call_chain'
/usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:168:in `invoke_with_call_chain'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:161:in `invoke'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:149:in `invoke_task'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:106:in `each'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:106:in `block in top_level'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:115:in `run_with_threads'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:100:in `top_level'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:78:in `block in run'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:165:in `standard_exception_handling'
/var/lib/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:75:in `run'
/var/lib/gems/1.9.1/gems/rake-10.1.1/bin/rake:33:in `<top (required)>'
/usr/local/bin/rake:23:in `load'
/usr/local/bin/rake:23:in `<main>'
Tasks: TOP => db:initial_setup => db:migrate => environment
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)
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.
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