As soon as I try to start rails server I encounter following problem. Can anybody please help.
E:\sites\simple_cms>rails s
C:/Ruby193/lib/ruby/gems/1.9.1/gems/mysql2-0.2.6-x86-mingw32/lib/mysql2/mysql2.rb:2:in `require': 193: %1 is not a valid Win32 application. - C:/Ruby193/lib/ruby/gems/1.9.1/gems/mysql2-0.2.6-x86-min
gw32/lib/mysql2/1.9/mysql2.so (LoadError)
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/mysql2-0.2.6-x86- mingw3 2/lib/mysql2/mysql2.rb:2:in `<top (required)>'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/mysql2-0.2.6-x86-mingw32/lib/mysql2.rb:7:in `require'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/mysql2-0.2.6-x86-mingw32/lib/mysql2.rb:7:in `<top (required)>'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.7.6/lib/bundler/runtime.rb:76:in `require'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.7.6/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.7.6/lib/bundler/runtime.rb:72:in `each'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.7.6/lib/bundler/runtime.rb:72:in `block in require'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.7.6/lib/bundler/runtime.rb:61:in `each'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.7.6/lib/bundler/runtime.rb:61:in `require'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.7.6/lib/bundler.rb:133:in `require'
from E:/sites/simple_cms/config/application.rb:7:in `<top (required)>'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-4.0.0/lib/rails/commands.rb:76:in `require'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-4.0.0/lib/rails/commands.rb:76:in `block in <top (required)>'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-4.0.0/lib/rails/commands.rb:73:in `tap'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-4.0.0/lib/rails/commands.rb:73:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
Related
Thanks in advance
I am following this to install sprangular locally.
https://github.com/sprangular/sprangular/wiki/setup-guide
I tried manual method also its giving same error.
getting this error while bundle install
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/bundler-1.12.1/lib/bundler/runtime.rb:89:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'sprangular'. (Bundler::GemRequireError)
Gem Load Error is: undefined method `sprockets_v2?' for Ngannotate:Module
Backtrace for gem load error is:
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/ngannotate-rails-1.2.2/lib/ngannotate/rails/railtie.rb:2:in `<top (required)>'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `block in require'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:232:in `load_dependency'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/ngannotate-rails-1.2.2/lib/ngannotate/rails.rb:2:in `<top (required)>'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `block in require'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:232:in `load_dependency'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/sprangular-0.1.0/lib/sprangular.rb:9:in `<top (required)>'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/bundler-1.12.1/lib/bundler/runtime.rb:86:in `require'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/bundler-1.12.1/lib/bundler/runtime.rb:86:in `block (2 levels) in require'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/bundler-1.12.1/lib/bundler/runtime.rb:81:in `each'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/bundler-1.12.1/lib/bundler/runtime.rb:81:in `block in require'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/bundler-1.12.1/lib/bundler/runtime.rb:70:in `each'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/bundler-1.12.1/lib/bundler/runtime.rb:70:in `require'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/bundler-1.12.1/lib/bundler.rb:102:in `require'
/home/spider/Dropbox/Round360/myapp/config/application.rb:14:in `<top (required)>'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:146:in `require'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:146:in `require_application_and_environment!'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:133:in `generate_or_destroy'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:51:in `generate'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/railties-4.1.8/lib/rails/commands.rb:17:in `<top (required)>'
bin/rails:4:in `require'
bin/rails:4:in `<main>'
Bundler Error Backtrace:
from /home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/bundler-1.12.1/lib/bundler/runtime.rb:85:in `block (2 levels) in require'
from /home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/bundler-1.12.1/lib/bundler/runtime.rb:81:in `each'
from /home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/bundler-1.12.1/lib/bundler/runtime.rb:81:in `block in require'
from /home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/bundler-1.12.1/lib/bundler/runtime.rb:70:in `each'
from /home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/bundler-1.12.1/lib/bundler/runtime.rb:70:in `require'
from /home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/bundler-1.12.1/lib/bundler.rb:102:in `require'
from /home/spider/Dropbox/Round360/myapp/config/application.rb:14:in `<top (required)>'
from /home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:146:in `require'
from /home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:146:in `require_application_and_environment!'
from /home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:133:in `generate_or_destroy'
from /home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:51:in `generate'
from /home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
from /home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/railties-4.1.8/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
Try bundle update instead of bundle install . and also do you have node.js installed?
So I've been going through the update rails tutorial and came across this error with the web console. I attempted reinstalling the bundles with no avail. Any input? This was the error i recieved:
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/web-console-2.0.0.beta3/lib/web_console/slave.rb:1:in `require': cannot load such file -- pty (LoadError)
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/web-console-2.0.0.beta3/lib/web_console/slave.rb:1:in `<top (required)>'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/web-console-2.0.0.beta3/lib/web_console.rb:13:in `require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/web-console-2.0.0.beta3/lib/web_console.rb:13:in `<top (required)>'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/web-console-2.0.0.beta3/lib/web-console.rb:1:in `require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/web-console-2.0.0.beta3/lib/web-console.rb:1:in `<top (required)>'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:77:in `require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:77:in `block (2 levels) in require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `each'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `block in require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `each'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler.rb:99:in `require'
from C:/Users/lmiln/workspace/toy_app/config/application.rb:7:in `<top (required)>'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.2/lib/rails/commands/commands_tasks.rb:141:in `require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.2/lib/rails/commands/commands_tasks.rb:141:in `require_application_and_environment!'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.2/lib/rails/commands/commands_tasks.rb:128:in `generate_or_destroy'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.2/lib/rails/commands/commands_tasks.rb:50:in `generate'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.2/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.2/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
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.
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>'
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>'