Any advice on how to fix this?
sms-MacBook-Air:myappsm$ rake routes
rake aborted!
LoadError: incompatible library version - /Users/sm/.rvm/gems/ruby-2.6.1/gems/msgpack-1.2.6/lib/msgpack/msgpack.bundle
/Users/sm/.rvm/gems/ruby-2.6.1/gems/msgpack-1.2.6/lib/msgpack.rb:11:in `require'
/Users/sm/.rvm/gems/ruby-2.6.1/gems/msgpack-1.2.6/lib/msgpack.rb:11:in `rescue in <top (required)>'
/Users/sm/.rvm/gems/ruby-2.6.1/gems/msgpack-1.2.6/lib/msgpack.rb:8:in `<top (required)>'
/Users/sm/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/store.rb:3:in `require'
/Users/sm/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/store.rb:3:in `block in <top (required)>'
/Users/sm/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.3.2/lib/bootsnap/explicit_require.rb:43:in `rescue in with_gems'
/Users/sm/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.3.2/lib/bootsnap/explicit_require.rb:39:in `with_gems'
/Users/sm/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/store.rb:3:in `<top (required)>'
/Users/sm/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache.rb:55:in `require_relative'
/Users/sm/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache.rb:55:in `<top (required)>'
/Users/sm/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.3.2/lib/bootsnap.rb:3:in `require_relative'
/Users/sm/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.3.2/lib/bootsnap.rb:3:in `<top (required)>'
/Users/sm/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.3.2/lib/bootsnap/setup.rb:1:in `require_relative'
/Users/sm/.rvm/gems/ruby-2.6.1/gems/bootsnap-1.3.2/lib/bootsnap/setup.rb:1:in `<top (required)>'
/Users/sm/myapp/config/boot.rb:4:in `require'
/Users/sm/myapp/config/boot.rb:4:in `<top (required)>'
/Users/sm/myapp/config/application.rb:1:in `require_relative'
/Users/sm/myapp/config/application.rb:1:in `<top (required)>'
/Users/sm/myapp/Rakefile:4:in `require_relative'
/Users/sm/myapp/Rakefile:4:in `<top (required)>'
/Users/sm/.rvm/rubies/ruby-2.6.1/lib/ruby/gems/2.6.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>'
Related
I pulled the latest code, and did bundle install. After that when i start the server I am getting the following error.
prashanth#prashanth-OptiPlex-390:~/proj/ysignup$ rails s
/home/prashanth/.gems/gems/activesupport-4.2.10/lib/active_support/i18n.rb:13:in `<top (required)>': uninitialized constant I18n (NameError)
from /home/prashanth/.gems/gems/activesupport-4.2.10/lib/active_support/inflector/inflections.rb:3:in `require'
from /home/prashanth/.gems/gems/activesupport-4.2.10/lib/active_support/inflector/inflections.rb:3:in `<top (required)>'
from /home/prashanth/.gems/gems/activesupport-4.2.10/lib/active_support/inflections.rb:1:in `require'
from /home/prashanth/.gems/gems/activesupport-4.2.10/lib/active_support/inflections.rb:1:in `<top (required)>'
from /home/prashanth/.gems/gems/activesupport-4.2.10/lib/active_support/inflector/methods.rb:3:in `require'
from /home/prashanth/.gems/gems/activesupport-4.2.10/lib/active_support/inflector/methods.rb:3:in `<top (required)>'
from /home/prashanth/.gems/gems/activesupport-4.2.10/lib/active_support/dependencies/autoload.rb:1:in `require'
from /home/prashanth/.gems/gems/activesupport-4.2.10/lib/active_support/dependencies/autoload.rb:1:in `<top (required)>'
from /home/prashanth/.gems/gems/activesupport-4.2.10/lib/active_support.rb:25:in `require'
from /home/prashanth/.gems/gems/activesupport-4.2.10/lib/active_support.rb:25:in `<top (required)>'
from /home/prashanth/.gems/gems/actionpack-4.2.10/lib/action_dispatch.rb:24:in `require'
from /home/prashanth/.gems/gems/actionpack-4.2.10/lib/action_dispatch.rb:24:in `<top (required)>'
from /home/prashanth/.gems/gems/railties-4.2.10/lib/rails/commands/server.rb:3:in `require'
from /home/prashanth/.gems/gems/railties-4.2.10/lib/rails/commands/server.rb:3:in `<top (required)>'
from /home/prashanth/.gems/gems/railties-4.2.10/lib/rails/commands/commands_tasks.rb:123:in `require'
from /home/prashanth/.gems/gems/railties-4.2.10/lib/rails/commands/commands_tasks.rb:123:in `require_command!'
from /home/prashanth/.gems/gems/railties-4.2.10/lib/rails/commands/commands_tasks.rb:73:in `server'
from /home/prashanth/.gems/gems/railties-4.2.10/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /home/prashanth/.gems/gems/railties-4.2.10/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
prashanth#prashanth-OptiPlex-390:~/proj/ysignup$
Here is the Gemfile:
gem 'rails-i18n'
I am trying to start a rails server, but I keep receiving a lengthy and cryptic error message saying that I have an incompatible library version for nokogiri 1.6.8. I have looked at other similar solutions about libxml2, libxslt, and libiconv not been linked with nokogiri and I have tried the what people recommend to fix that, but I still receive the message:
Sams-MBP:toy-app name$ rails server
/Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/nokogiri-1.6.8/lib/nokogiri.rb:32:in `require': incompatible library version - /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/nokogiri-1.6.8/lib/nokogiri/nokogiri.bundle (fatal)
from /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/nokogiri-1.6.8/lib/nokogiri.rb:32:in `rescue in <top (required)>'
from /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/nokogiri-1.6.8/lib/nokogiri.rb:28:in `<top (required)>'
from /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/loofah-2.0.3/lib/loofah.rb:3:in `require'
from /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/loofah-2.0.3/lib/loofah.rb:3:in `<top (required)>'
from /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/rails-html-sanitizer-1.0.3/lib/rails-html-sanitizer.rb:2:in `require'
from /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/rails-html-sanitizer-1.0.3/lib/rails-html-sanitizer.rb:2:in `<top (required)>'
from /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/actionview-5.0.0/lib/action_view/helpers/sanitize_helper.rb:2:in `require'
from /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/actionview-5.0.0/lib/action_view/helpers/sanitize_helper.rb:2:in `<top (required)>'
from /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/actionview-5.0.0/lib/action_view/helpers/text_helper.rb:32:in `require'
from /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/actionview-5.0.0/lib/action_view/helpers/text_helper.rb:32:in `<module:TextHelper>'
from /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/actionview-5.0.0/lib/action_view/helpers/text_helper.rb:29:in `<module:Helpers>'
from /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/actionview-5.0.0/lib/action_view/helpers/text_helper.rb:6:in `<module:ActionView>'
from /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/actionview-5.0.0/lib/action_view/helpers/text_helper.rb:4:in `<top (required)>'
from /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/actionview-5.0.0/lib/action_view/helpers/form_tag_helper.rb:18:in `require'
from /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/actionview-5.0.0/lib/action_view/helpers/form_tag_helper.rb:18:in `<module:FormTagHelper>'
from /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/actionview-5.0.0/lib/action_view/helpers/form_tag_helper.rb:14:in `<module:Helpers>'
from /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/actionview-5.0.0/lib/action_view/helpers/form_tag_helper.rb:8:in `<module:ActionView>'
from /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/actionview-5.0.0/lib/action_view/helpers/form_tag_helper.rb:6:in `<top (required)>'
from /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/actionview-5.0.0/lib/action_view/helpers/form_helper.rb:4:in `require'
from /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/actionview-5.0.0/lib/action_view/helpers/form_helper.rb:4:in `<top (required)>'
from /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/actionview-5.0.0/lib/action_view/helpers.rb:50:in `require'
from /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/actionview-5.0.0/lib/action_view/helpers.rb:50:in `<module:Helpers>'
from /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/actionview-5.0.0/lib/action_view/helpers.rb:4:in `<module:ActionView>'
from /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/actionview-5.0.0/lib/action_view/helpers.rb:3:in `<top (required)>'
from /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/sprockets-rails-3.1.1/lib/sprockets/rails/context.rb:7:in `require'
from /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/sprockets-rails-3.1.1/lib/sprockets/rails/context.rb:7:in `<module:Context>'
from /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/sprockets-rails-3.1.1/lib/sprockets/rails/context.rb:6:in `<module:Rails>'
from /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/sprockets-rails-3.1.1/lib/sprockets/rails/context.rb:5:in `<module:Sprockets>'
from /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/sprockets-rails-3.1.1/lib/sprockets/rails/context.rb:4:in `<top (required)>'
from /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/sprockets-rails-3.1.1/lib/sprockets/railtie.rb:7:in `require'
from /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/sprockets-rails-3.1.1/lib/sprockets/railtie.rb:7:in `<top (required)>'
from /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/railties-5.0.0/lib/rails/all.rb:14:in `require'
from /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/railties-5.0.0/lib/rails/all.rb:14:in `block in <top (required)>'
from /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/railties-5.0.0/lib/rails/all.rb:12:in `each'
from /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/railties-5.0.0/lib/rails/all.rb:12:in `<top (required)>'
from /Users/name/RubyWorkspace/toy-app/config/application.rb:3:in `require'
from /Users/name/RubyWorkspace/toy-app/config/application.rb:3:in `<top (required)>'
from /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/railties-5.0.0/lib/rails/commands/commands_tasks.rb:88:in `require'
from /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/railties-5.0.0/lib/rails/commands/commands_tasks.rb:88:in `block in server'
from /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/railties-5.0.0/lib/rails/commands/commands_tasks.rb:85:in `tap'
from /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/railties-5.0.0/lib/rails/commands/commands_tasks.rb:85:in `server'
from /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/railties-5.0.0/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
from /Users/name/RubyWorkspace/toy-app/vendor/bundle/gems/railties-5.0.0/lib/rails/commands.rb:18:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
Remove the Gemfile.lock in the root directory of the application. Then, remove the versions written in the Gemfile, just have the name of the gem there. Then, again do bundle install. Maybe this can help.
I'm getting the following error when running the sidekiq on rails 4.1.4.
Here is entire error log
undefined method `eager_load_namespaces' for #<Rails::Railtie::Configuration:0x00000002a3c788>
/usr/lib/ruby/vendor_ruby/rails/railtie/configuration.rb:85:in `method_missing'
/var/lib/gems/2.1.0/gems/activemodel-4.1.4/lib/active_model/railtie.rb:6:in `<class:Railtie>'
/var/lib/gems/2.1.0/gems/activemodel-4.1.4/lib/active_model/railtie.rb:5:in `<module:ActiveModel>'
/var/lib/gems/2.1.0/gems/activemodel-4.1.4/lib/active_model/railtie.rb:4:in `<top (required)>'
/var/lib/gems/2.1.0/gems/activerecord-4.1.4/lib/active_record/railtie.rb:3:in `require'
/var/lib/gems/2.1.0/gems/activerecord-4.1.4/lib/active_record/railtie.rb:3:in `<top (required)>'
/var/lib/gems/2.1.0/gems/railties-4.1.4/lib/rails/all.rb:12:in `require'
/var/lib/gems/2.1.0/gems/railties-4.1.4/lib/rails/all.rb:12:in `block in <top (required)>'
/var/lib/gems/2.1.0/gems/railties-4.1.4/lib/rails/all.rb:10:in `each'
/var/lib/gems/2.1.0/gems/railties-4.1.4/lib/rails/all.rb:10:in `<top (required)>'
/home/santosh/Roorah/config/application.rb:3:in `require'
/home/santosh/Roorah/config/application.rb:3:in `<top (required)>'
/usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/home/santosh/Roorah/config/environment.rb:2:in `<top (required)>'
/usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/var/lib/gems/2.1.0/gems/sidekiq-3.3.0/lib/sidekiq/cli.rb:227:in `boot_system'
/var/lib/gems/2.1.0/gems/sidekiq-3.3.0/lib/sidekiq/cli.rb:50:in `run'
/var/lib/gems/2.1.0/gems/sidekiq-3.3.0/bin/sidekiq:8:in `<top (required)>'
/usr/local/bin/sidekiq:23:in `load'
/usr/local/bin/sidekiq:23:in `<main>'
Please do ask if any further information is required.
Try updating Rails to version 4.2.10 or later.
At least the method Rails::Railtie::Configuration#eager_load_namespaces is defined railties-4.2.10.
bundle exec rails generate rails_admin:install
/home/vieirater/.rvm/gems/ruby-2.0.0-p247/gems/nokogiri-1.6.0/lib/nokogiri.rb:28:in `require': cannot load such file -- nokogiri/nokogiri (LoadError)
from /home/vieirater/.rvm/gems/ruby-2.0.0-p247/gems/nokogiri-1.6.0/lib/nokogiri.rb:28:in `<top (required)>'
from /home/vieirater/.rvm/gems/ruby-2.0.0-p247/gems/rack-pjax-0.7.0/lib/rack/pjax.rb:1:in `require'
from /home/vieirater/.rvm/gems/ruby-2.0.0-p247/gems/rack-pjax-0.7.0/lib/rack/pjax.rb:1:in `<top (required)>'
from /home/vieirater/.rvm/gems/ruby-2.0.0-p247/gems/rack-pjax-0.7.0/lib/rack-pjax.rb:2:in `require'
from /home/vieirater/.rvm/gems/ruby-2.0.0-p247/gems/rack-pjax-0.7.0/lib/rack-pjax.rb:2:in `<top (required)>'
from /home/vieirater/.rvm/gems/ruby-2.0.0-p247/gems/rails_admin-0.5.0/lib/rails_admin/engine.rb:7:in `require'
from /home/vieirater/.rvm/gems/ruby-2.0.0-p247/gems/rails_admin-0.5.0/lib/rails_admin/engine.rb:7:in `<top (required)>'
from /home/vieirater/.rvm/gems/ruby-2.0.0-p247/gems/rails_admin-0.5.0/lib/rails_admin.rb:1:in `require'
from /home/vieirater/.rvm/gems/ruby-2.0.0-p247/gems/rails_admin-0.5.0/lib/rails_admin.rb:1:in `<top (required)>'
from /home/vieirater/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'
from /home/vieirater/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
from /home/vieirater/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each'
from /home/vieirater/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require'
from /home/vieirater/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each'
from /home/vieirater/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'
from /home/vieirater/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'
from /home/vieirater/University/config/application.rb:7:in `<top (required)>'
from /home/vieirater/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/commands.rb:44:in `require'
from /home/vieirater/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/commands.rb:44:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
When trying to run rails g rails_admin:install I get the following error:
/home/vieirater/.rvm/gems/ruby-2.0.0-p247/gems/nokogiri-1.6.0/lib/nokogiri.rb:28:in `require': cannot load such file -- nokogiri/nokogiri (LoadError)
from /home/vieirater/.rvm/gems/ruby-2.0.0-p247/gems/nokogiri-1.6.0/lib/nokogiri.rb:28:in `<top (required)>'
from /home/vieirater/.rvm/gems/ruby-2.0.0-p247/gems/rack-pjax-0.7.0/lib/rack/pjax.rb:1:in `require'
from /home/vieirater/.rvm/gems/ruby-2.0.0-p247/gems/rack-pjax-0.7.0/lib/rack/pjax.rb:1:in `<top (required)>'
from /home/vieirater/.rvm/gems/ruby-2.0.0-p247/gems/rack-pjax-0.7.0/lib/rack-pjax.rb:2:in `require'
from /home/vieirater/.rvm/gems/ruby-2.0.0-p247/gems/rack-pjax-0.7.0/lib/rack-pjax.rb:2:in `<top (required)>'
from /home/vieirater/.rvm/gems/ruby-2.0.0-p247/gems/rails_admin-0.5.0/lib/rails_admin/engine.rb:7:in `require'
from /home/vieirater/.rvm/gems/ruby-2.0.0-p247/gems/rails_admin-0.5.0/lib/rails_admin/engine.rb:7:in `<top (required)>'
from /home/vieirater/.rvm/gems/ruby-2.0.0-p247/gems/rails_admin-0.5.0/lib/rails_admin.rb:1:in `require'
from /home/vieirater/.rvm/gems/ruby-2.0.0-p247/gems/rails_admin-0.5.0/lib/rails_admin.rb:1:in `<top (required)>'
from /home/vieirater/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'
from /home/vieirater/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
from /home/vieirater/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each'
from /home/vieirater/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require'
from /home/vieirater/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each'
from /home/vieirater/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'
from /home/vieirater/.rvm/gems/ruby-2.0.0-p247#global/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'
from /home/vieirater/website/config/application.rb:7:in `<top (required)>'
from /home/vieirater/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/commands.rb:44:in `require'
from /home/vieirater/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/commands.rb:44:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
You can try to run
rvm ruby-2.0.0-p247 gem update --system
More detail in this blog post on the very same issue.