can't make the rails console run on cygwin - ruby-on-rails

Thanks in advance.
I'm running Rails under Cygwin. Everything seams to work fine but the rails console. When I want to run the console, this is the error I get:
$ rails console
/usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require': cannot load such file -- minitest/unit (LoadError)
from /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `block in require'
from /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `block in load_dependency'
from /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:591:in `new_constants_in'
from /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `load_dependency'
from /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
from /usr/lib/ruby/1.9.1/test/unit/assertions.rb:1:in `<top (required)>'
from /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
from /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `block in require'
from /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `block in load_dependency'
from /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:591:in `new_constants_in'
from /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `load_dependency'
from /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
from /usr/lib/ruby/1.9.1/test/unit/testcase.rb:1:in `<top (required)>'
from /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
from /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `block in require'
from /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `block in load_dependency'
from /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:591:in `new_constants_in'
from /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `load_dependency'
from /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
from /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/active_support/test_case.rb:1:in `<top (required)>'
from /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
from /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `block in require'
from /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `block in load_dependency'
from /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:591:in `new_constants_in'
from /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `load_dependency'
from /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
from /usr/lib/ruby/gems/1.9.1/gems/railties-3.0.0/lib/rails/console/app.rb:2:in `<top (required)>'
from /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
from /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `block in require'
from /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `block in load_dependency'
from /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:591:in `new_constants_in'
from /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `load_dependency'
from /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
from /usr/lib/ruby/gems/1.9.1/gems/railties-3.0.0/lib/rails/application.rb:225:in `initialize_console'
from /usr/lib/ruby/gems/1.9.1/gems/railties-3.0.0/lib/rails/application.rb:153:in `load_console'
from /usr/lib/ruby/gems/1.9.1/gems/railties-3.0.0/lib/rails/commands/console.rb:26:in `start'
from /usr/lib/ruby/gems/1.9.1/gems/railties-3.0.0/lib/rails/commands/console.rb:8:in `start'
from /usr/lib/ruby/gems/1.9.1/gems/railties-3.0.0/lib/rails/commands.rb:23:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
Any help will be appreciated

Looks like you don't have the gem "minitest" installed in your Gemfile.

Related

"Tried to create Proc object without a block" error when running AWS SDK with ruby 3.1

I'm getting the error "tried to create Proc object without a block (ArgumentError)" from the AWS SDK Core gem when trying to run a rails app after upgrading ruby to 3.1.1. This surprises me since it looks like the library is being maintained / used and I haven't found others mentioning this problem. Using aws-sdk-core 3.46.2.
/Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/aws-sdk-core-3.46.2/lib/seahorse/client/plugin.rb:61:in `new': tried to create Proc object without a block (ArgumentError)
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/aws-sdk-core-3.46.2/lib/seahorse/client/plugin.rb:61:in `option'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/aws-sdk-core-3.46.2/lib/aws-sdk-core/plugins/credentials_configuration.rb:21:in `<class:CredentialsConfiguration>'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/aws-sdk-core-3.46.2/lib/aws-sdk-core/plugins/credentials_configuration.rb:5:in `<module:Plugins>'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/aws-sdk-core-3.46.2/lib/aws-sdk-core/plugins/credentials_configuration.rb:3:in `<module:Aws>'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/aws-sdk-core-3.46.2/lib/aws-sdk-core/plugins/credentials_configuration.rb:1:in `<top (required)>'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/activesupport-5.2.4/lib/active_support/dependencies.rb:291:in `require'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/activesupport-5.2.4/lib/active_support/dependencies.rb:291:in `block in require'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/activesupport-5.2.4/lib/active_support/dependencies.rb:257:in `load_dependency'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/activesupport-5.2.4/lib/active_support/dependencies.rb:291:in `require'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/aws-sdk-core-3.46.2/lib/aws-sdk-sts/client.rb:9:in `<top (required)>'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/aws-sdk-core-3.46.2/lib/aws-sdk-sts.rb:11:in `require_relative'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/aws-sdk-core-3.46.2/lib/aws-sdk-sts.rb:11:in `<top (required)>'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/activesupport-5.2.4/lib/active_support/dependencies.rb:291:in `require'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/activesupport-5.2.4/lib/active_support/dependencies.rb:291:in `block in require'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/activesupport-5.2.4/lib/active_support/dependencies.rb:257:in `load_dependency'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/activesupport-5.2.4/lib/active_support/dependencies.rb:291:in `require'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/aws-sdk-core-3.46.2/lib/aws-sdk-core.rb:82:in `<top (required)>'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/activesupport-5.2.4/lib/active_support/dependencies.rb:291:in `require'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/activesupport-5.2.4/lib/active_support/dependencies.rb:291:in `block in require'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/activesupport-5.2.4/lib/active_support/dependencies.rb:257:in `load_dependency'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/activesupport-5.2.4/lib/active_support/dependencies.rb:291:in `require'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/aws-sdk-kms-1.13.0/lib/aws-sdk-kms.rb:8:in `<top (required)>'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/activesupport-5.2.4/lib/active_support/dependencies.rb:291:in `require'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/activesupport-5.2.4/lib/active_support/dependencies.rb:291:in `block in require'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/activesupport-5.2.4/lib/active_support/dependencies.rb:257:in `load_dependency'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/activesupport-5.2.4/lib/active_support/dependencies.rb:291:in `require'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/aws-sdk-s3-1.31.0/lib/aws-sdk-s3.rb:8:in `<top (required)>'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/bundler-2.3.8/lib/bundler/runtime.rb:60:in `require'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/bundler-2.3.8/lib/bundler/runtime.rb:60:in `block (2 levels) in require'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/bundler-2.3.8/lib/bundler/runtime.rb:55:in `each'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/bundler-2.3.8/lib/bundler/runtime.rb:55:in `block in require'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/bundler-2.3.8/lib/bundler/runtime.rb:44:in `each'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/bundler-2.3.8/lib/bundler/runtime.rb:44:in `require'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/bundler-2.3.8/lib/bundler.rb:176:in `require'
from /Users/jaredsohn/topfunnel/topfunnel-web/config/application.rb:9:in `<top (required)>'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/railties-5.2.4/lib/rails/command/actions.rb:22:in `require'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/railties-5.2.4/lib/rails/command/actions.rb:22:in `require_application!'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/railties-5.2.4/lib/rails/command/actions.rb:14:in `require_application_and_environment!'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/railties-5.2.4/lib/rails/commands/console/console_command.rb:95:in `perform'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/railties-5.2.4/lib/rails/command/base.rb:69:in `perform'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/railties-5.2.4/lib/rails/command.rb:46:in `invoke'
from /Users/jaredsohn/.rvm/gems/ruby-3.1.1/gems/railties-5.2.4/lib/rails/commands.rb:18:in `<top (required)>'
from bin/rails:13:in `require'
from bin/rails:13:in `<main>'

LoadError: incompatible library version - /home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/nokogiri-1.8.2/lib/nokogiri/nokogiri.so

Trying to run rake assets precompile with production mode as follows.
rake assets:precompile
It is working fine for ubuntu 14.04 (32 bit) and 16.06(32 bit.) But getting Load Error on 16.04(64 bit) in aws ec2.
Here's my full stack trace:
rake aborted! LoadError: incompatible library version -
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/nokogiri-1.8.2/lib/nokogiri/nokogiri.so
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`block in require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:259:in
`load_dependency'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/nokogiri-1.8.2/lib/nokogiri.rb:32:in
`rescue in <top (required)>'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/nokogiri-1.8.2/lib/nokogiri.rb:28:in
`<top (required)>'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`block in require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:259:in
`load_dependency'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/loofah-2.2.2/lib/loofah.rb:3:in
`<top (required)>'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`block in require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:259:in
`load_dependency'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/rails-html-sanitizer-1.0.4/lib/rails-html-sanitizer.rb:2:in
`<top (required)>'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`block in require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:259:in
`load_dependency'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/actionview-5.0.1/lib/action_view/helpers/sanitize_helper.rb:2:in
`<top (required)>'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`block in require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:259:in
`load_dependency'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/actionview-5.0.1/lib/action_view/helpers.rb:58:in
`<module:Helpers>'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/actionview-5.0.1/lib/action_view/helpers.rb:4:in
`<module:ActionView>'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/actionview-5.0.1/lib/action_view/helpers.rb:3:in
`<top (required)>'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`block in require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:259:in
`load_dependency'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/actionview-5.0.1/lib/action_view/base.rb:5:in
`<top (required)>'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`block in require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:259:in
`load_dependency'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/public_activity-1.5.0/lib/public_activity/utility/view_helpers.rb:25:in
`<module:PublicActivity>'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/public_activity-1.5.0/lib/public_activity/utility/view_helpers.rb:2:in
`<top (required)>'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`block in require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:259:in
`load_dependency'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/public_activity-1.5.0/lib/public_activity.rb:68:in
`<top (required)>'
/home/ubuntu/learnmusicco/config/application.rb:7:in `<top
(required)>' /home/ubuntu/learnmusicco/Rakefile:4:in `<top
(required)>'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/rake-12.3.1/exe/rake:27:in
`<top (required)>'
Caused by: LoadError: cannot load such file -- nokogiri/2.3/nokogiri
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`block in require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:259:in
`load_dependency'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/nokogiri-1.8.2/lib/nokogiri.rb:30:in
`<top (required)>'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`block in require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:259:in
load_dependency'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/loofah-2.2.2/lib/loofah.rb:3:in
`<top (required)>'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`block in require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:259:in
`load_dependency'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/rails-html-sanitizer-1.0.4/lib/rails-html-sanitizer.rb:2:in
`<top (required)>'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`block in require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:259:in
`load_dependency'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/actionview-5.0.1/lib/action_view/helpers/sanitize_helper.rb:2:in
`<top (required)>'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`block in require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:259:in
`load_dependency'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/actionview-5.0.1/lib/action_view/helpers.rb:58:in
`<module:Helpers>'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/actionview-5.0.1/lib/action_view/helpers.rb:4:in
`<module:ActionView>'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/actionview-5.0.1/lib/action_view/helpers.rb:3:in
`<top (required)>'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`block in require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:259:in
`load_dependency'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/actionview-5.0.1/lib/action_view/base.rb:5:in
`<top (required)>'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`block in require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:259:in
`load_dependency'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/public_activity-1.5.0/lib/public_activity/utility/view_helpers.rb:25:in
`<module:PublicActivity>'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/public_activity-1.5.0/lib/public_activity/utility/view_helpers.rb:2:in
`<top (required)>'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`block in require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:259:in
`load_dependency'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in
`require'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/public_activity-1.5.0/lib/public_activity.rb:68:in
`<top (required)>'
/home/ubuntu/learnmusicco/config/application.rb:7:in `<top
(required)>' /home/ubuntu/learnmusicco/Rakefile:4:in `<top
(required)>'
/home/ubuntu/.rvm/gems/ruby-2.3.1#lm5/gems/rake-12.3.1/exe/rake:27:in
`<top (required)>'
You can try running gem pristine --all to automatically uninstall and reinstall all installed gems in the current environment. That might sort out your issue.
If that doesn't work, try running rm -rf `rvm gemdir`/bundler/gems to forcibly remove all of your gems and then try another bundle install.

rails test VS rake test in Rails 5

So I'm trying out Rails 5, and there are few differences, such as I can use rails instead of rake for commands like test and db:* However, I've run into a weird snag:
If I run: $ rails test I get the following errors:
Running via Spring preloader in process 30936
/usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require': cannot load such file -- minitest/reporters (LoadError)
from /usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `block in require'
from /usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:259:in `load_dependency'
from /usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require'
from /home/ubuntu/workspace/stitched_up_site/test/test_helper.rb:4:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require'
from /usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `block in require'
from /usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:259:in `load_dependency'
from /usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require'
from /home/ubuntu/workspace/stitched_up_site/test/controllers/static_pages_controller_test.rb:1:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require'
from /usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `block in require'
from /usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:259:in `load_dependency'
from /usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require'
from /usr/local/rvm/gems/ruby-2.3.0/gems/railties-5.0.0.1/lib/rails/test_unit/test_requirer.rb:11:in `block in require_files'
from /usr/local/rvm/gems/ruby-2.3.0/gems/railties-5.0.0.1/lib/rails/test_unit/test_requirer.rb:10:in `each'
from /usr/local/rvm/gems/ruby-2.3.0/gems/railties-5.0.0.1/lib/rails/test_unit/test_requirer.rb:10:in `require_files'
from /usr/local/rvm/gems/ruby-2.3.0/gems/railties-5.0.0.1/lib/rails/test_unit/minitest_plugin.rb:76:in `plugin_rails_init'
from /usr/local/rvm/gems/ruby-2.3.0/gems/minitest-5.9.0/lib/minitest.rb:80:in `block in init_plugins'
from /usr/local/rvm/gems/ruby-2.3.0/gems/minitest-5.9.0/lib/minitest.rb:78:in `each'
from /usr/local/rvm/gems/ruby-2.3.0/gems/minitest-5.9.0/lib/minitest.rb:78:in `init_plugins'
from /usr/local/rvm/gems/ruby-2.3.0/gems/minitest-5.9.0/lib/minitest.rb:129:in `run'
from /usr/local/rvm/gems/ruby-2.3.0/gems/railties-5.0.0.1/lib/rails/commands/test.rb:9:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require'
from /usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `block in require'
from /usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:259:in `load_dependency'
from /usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require'
from /usr/local/rvm/gems/ruby-2.3.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:138:in `require_command!'
from /usr/local/rvm/gems/ruby-2.3.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:95:in `test'
from /usr/local/rvm/gems/ruby-2.3.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
from /usr/local/rvm/gems/ruby-2.3.0/gems/railties-5.0.0.1/lib/rails/commands.rb:18:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require'
from /usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `block in require'
from /usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:259:in `load_dependency'
from /usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require'
from /home/ubuntu/workspace/stitched_up_site/bin/rails:9:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:287:in `load'
from /usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:287:in `block in load'
from /usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:259:in `load_dependency'
from /usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:287:in `load'
from /usr/local/rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from -e:1:in `<main>'
However, if i run $ rake test under the same conditions, it runs the way I expect.

Cannot start rail server

I am getting the following error while starting my rails server.
/Users/joy/.rvm/gems/ruby-1.9.3-p194#project/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- systemu (LoadError)
from /Users/joy/.rvm/gems/ruby-1.9.3-p194#project/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:251:in `block in require'
from /Users/joy/.rvm/gems/ruby-1.9.3-p194#project/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/joy/.rvm/gems/ruby-1.9.3-p194#project/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:251:in `require'
from /Users/joy/.rvm/gems/ruby-1.9.3-p194#project/gems/macaddr-1.6.2/lib/macaddr.rb:23:in `<top (required)>'
from /Users/joy/.rvm/gems/ruby-1.9.3-p194#project/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:251:in `require'
from /Users/joy/.rvm/gems/ruby-1.9.3-p194#project/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:251:in `block in require'
from /Users/joy/.rvm/gems/ruby-1.9.3-p194#project/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/joy/.rvm/gems/ruby-1.9.3-p194#project/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:251:in `require'
from /Users/joy/.rvm/gems/ruby-1.9.3-p194#project/gems/uuid-2.3.7/lib/uuid.rb:14:in `<top (required)>'
from /Users/joy/.rvm/gems/ruby-1.9.3-p194#global/gems/bundler-1.5.3/lib/bundler/runtime.rb:76:in `require'
from /Users/joy/.rvm/gems/ruby-1.9.3-p194#global/gems/bundler-1.5.3/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
from /Users/joy/.rvm/gems/ruby-1.9.3-p194#global/gems/bundler-1.5.3/lib/bundler/runtime.rb:72:in `each'
from /Users/joy/.rvm/gems/ruby-1.9.3-p194#global/gems/bundler-1.5.3/lib/bundler/runtime.rb:72:in `block in require'
from /Users/joy/.rvm/gems/ruby-1.9.3-p194#global/gems/bundler-1.5.3/lib/bundler/runtime.rb:61:in `each'
from /Users/joy/.rvm/gems/ruby-1.9.3-p194#global/gems/bundler-1.5.3/lib/bundler/runtime.rb:61:in `require'
from /Users/joy/.rvm/gems/ruby-1.9.3-p194#global/gems/bundler-1.5.3/lib/bundler.rb:131:in `require'
from /Users/joy/analytics/cappings/config/application.rb:17:in `<top (required)>'
from /Users/joy/.rvm/gems/ruby-1.9.3-p194#project/gems/railties-3.2.16/lib/rails/commands.rb:53:in `require'
from /Users/joy/.rvm/gems/ruby-1.9.3-p194#project/gems/railties-3.2.16/lib/rails/commands.rb:53:in `block in <top (required)>'
from /Users/joy/.rvm/gems/ruby-1.9.3-p194#project/gems/railties-3.2.16/lib/rails/commands.rb:50:in `tap'
from /Users/joy/.rvm/gems/ruby-1.9.3-p194#project/gems/railties-3.2.16/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'

No Mocha monkey-patch for MiniTest version (RuntimeError)

Any idea how to fix this.. this has happened recently when I try to open my rails console (both development and production). I saw a bug report. But any temporary fix?
lib/mocha/integration/mini_test.rb:56:in `<class:TestCase>': No Mocha monkey-patch for MiniTest version (RuntimeError)
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/mocha-0.12.6/lib/mocha/integration/mini_test.rb:20:in `<class:Unit>'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/mocha-0.12.6/lib/mocha/integration/mini_test.rb:19:in `<module:MiniTest>'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/mocha-0.12.6/lib/mocha/integration/mini_test.rb:18:in `<top (required)>'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `block in require'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/mocha-0.12.6/lib/mocha/integration.rb:45:in `block in <top (required)>'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/mocha-0.12.6/lib/mocha/integration.rb:44:in `each'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/mocha-0.12.6/lib/mocha/integration.rb:44:in `<top (required)>'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `block in require'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/mocha-0.12.6/lib/mocha.rb:2:in `<top (required)>'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `block in require'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.2.3/lib/active_support/testing/mochaing.rb:2:in `block in <top (required)>'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.2.3/lib/active_support/core_ext/kernel/reporting.rb:11:in `block in silence_warnings'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.2.3/lib/active_support/core_ext/kernel/reporting.rb:22:in `with_warnings'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.2.3/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.2.3/lib/active_support/testing/mochaing.rb:2:in `<top (required)>'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `block in require'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.2.3/lib/active_support/test_case.rb:8:in `<top (required)>'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `block in require'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.3/lib/rails/console/app.rb:2:in `<top (required)>'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `block in require'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.3/lib/rails/application.rb:299:in `initialize_console'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.3/lib/rails/application.rb:152:in `load_console'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.3/lib/rails/commands/console.rb:27:in `start'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.3/lib/rails/commands/console.rb:8:in `start'
from /Users/carlos/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.3/lib/rails/commands.rb:41:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
Ok, I figured, I can use a previous version of minitest for this to work
gem 'minitest', '3.5.0'

Resources