Cannot start rail server - ruby-on-rails

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>'

Related

Error while installing Sprangular. undefined method `sprockets_v2?' for Ngannotate:Module

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?

Ruby Web-console 2.0

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>'

Trouble starting Rails server

I am a newbie in Ruby. I have installed ruby and gems in in windows system but unable to start rails server. I have attached the screen shot and the below the error i am getting. Need help to sort this out.
c:\ror\dev\draft_app>rails s
c:/ror/Ruby22/lib/ruby/gems/2.2.0/gems/sqlite3-1.3.10-x86-mingw32/lib/sqlite3.rb
:6:in `require': cannot load such file -- sqlite3/sqlite3_native (LoadError)
from c:/ror/Ruby22/lib/ruby/gems/2.2.0/gems/sqlite3-1.3.10-x86-mingw32/l
ib/sqlite3.rb:6:in `rescue in <top (required)>'
from c:/ror/Ruby22/lib/ruby/gems/2.2.0/gems/sqlite3-1.3.10-x86-mingw32/l
ib/sqlite3.rb:2:in `<top (required)>'
from c:/ror/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.8.5/lib/bundler/ru
ntime.rb:76:in `require'
from c:/ror/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.8.5/lib/bundler/ru
ntime.rb:76:in `block (2 levels) in require'
from c:/ror/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.8.5/lib/bundler/ru
ntime.rb:72:in `each'
from c:/ror/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.8.5/lib/bundler/ru
ntime.rb:72:in `block in require'
from c:/ror/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.8.5/lib/bundler/ru
ntime.rb:61:in `each'
from c:/ror/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.8.5/lib/bundler/ru
ntime.rb:61:in `require'
from c:/ror/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.8.5/lib/bundler.rb
:134:in `require'
from c:/ror/dev/draft_app/config/application.rb:7:in `<top (required)>'
from c:/ror/Ruby22/lib/ruby/gems/2.2.0/gems/railties-4.2.0/lib/rails/com
mands/commands_tasks.rb:78:in `require'
from c:/ror/Ruby22/lib/ruby/gems/2.2.0/gems/railties-4.2.0/lib/rails/com
mands/commands_tasks.rb:78:in `block in server'
from c:/ror/Ruby22/lib/ruby/gems/2.2.0/gems/railties-4.2.0/lib/rails/com
mands/commands_tasks.rb:75:in `tap'
from c:/ror/Ruby22/lib/ruby/gems/2.2.0/gems/railties-4.2.0/lib/rails/com
mands/commands_tasks.rb:75:in `server'
from c:/ror/Ruby22/lib/ruby/gems/2.2.0/gems/railties-4.2.0/lib/rails/com
mands/commands_tasks.rb:39:in `run_command!'
from c:/ror/Ruby22/lib/ruby/gems/2.2.0/gems/railties-4.2.0/lib/rails/com
mands.rb:17:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
Thanks in advance

ruby server not working

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>'

Cannot generate rails_admin:install

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>'

Resources