how to determinate which conflicts or lack or libraries when uploading rails server? -
i very new on rails, , have problem trying set project on local machine (the project started) , tons of error, firstly did bundle install
, after download gems , libraries tried rails server
, problem many errors, , dont know have install or in order make run.
any idea? here shell result
i think have install libraries.. idea of these problems?
c:/ruby200/lib/ruby/gems/2.0.0/gems/listen-1.0.2/lib/listen/adapter.rb:195:in ` require': cannot load such file -- wdm (loaderror) c:/ruby200/lib/ruby/gems/2.0.0/gems/listen-1.0.2/lib/listen/adapter .rb:195:in `load_dependent_adapter' c:/ruby200/lib/ruby/gems/2.0.0/gems/listen-1.0.2/lib/listen/adapter s/windows.rb:33:in `load_dependent_adapter' c:/ruby200/lib/ruby/gems/2.0.0/gems/listen-1.0.2/lib/listen/adapter .rb:187:in `usable?' c:/ruby200/lib/ruby/gems/2.0.0/gems/listen-1.0.2/lib/listen/adapter s/windows.rb:25:in `usable?' c:/ruby200/lib/ruby/gems/2.0.0/gems/listen-1.0.2/lib/listen/adapter .rb:179:in `usable_and_works?' c:/ruby200/lib/ruby/gems/2.0.0/gems/listen-1.0.2/lib/listen/adapter .rb:49:in `block in select_and_initialize' c:/ruby200/lib/ruby/gems/2.0.0/gems/listen-1.0.2/lib/listen/adapter .rb:47:in `each' c:/ruby200/lib/ruby/gems/2.0.0/gems/listen-1.0.2/lib/listen/adapter .rb:47:in `select_and_initialize' c:/ruby200/lib/ruby/gems/2.0.0/gems/listen-1.0.2/lib/listen/listene r.rb:267:in `initialize_adapter' c:/ruby200/lib/ruby/gems/2.0.0/gems/listen-1.0.2/lib/listen/listene r.rb:259:in `setup' c:/ruby200/lib/ruby/gems/2.0.0/gems/listen-1.0.2/lib/listen/listene r.rb:49:in `start' c:/ruby200/lib/ruby/gems/2.0.0/gems/guard-1.8.0/lib/guard.rb:194:in `block in start' c:/ruby200/lib/ruby/gems/2.0.0/gems/guard-1.8.0/lib/guard.rb:368:in `block in within_preserved_state' c:/ruby200/lib/ruby/gems/2.0.0/gems/guard-1.8.0/lib/guard.rb:365:in `synchronize' c:/ruby200/lib/ruby/gems/2.0.0/gems/guard-1.8.0/lib/guard.rb:365:in `within_preserved_state' c:/ruby200/lib/ruby/gems/2.0.0/gems/guard-1.8.0/lib/guard.rb:190:in `start' c:/ruby200/lib/ruby/gems/2.0.0/gems/guard-1.8.0/lib/guard/cli.rb:11 0:in `start' c:/ruby200/lib/ruby/gems/2.0.0/gems/thor-0.18.1/lib/thor/command.rb :27:in `run' c:/ruby200/lib/ruby/gems/2.0.0/gems/thor-0.18.1/lib/thor/invocation .rb:120:in `invoke_command' c:/ruby200/lib/ruby/gems/2.0.0/gems/thor-0.18.1/lib/thor.rb:363:in `dispatch' c:/ruby200/lib/ruby/gems/2.0.0/gems/thor-0.18.1/lib/thor/base.rb:43 9:in `start' c:/ruby200/lib/ruby/gems/2.0.0/gems/guard-1.8.0/bin/guard:6:in `<to p (required)>' c:/ruby200/bin/guard:23:in `load' c:/ruby200/bin/guard:23:in `<main>'
this 1 error, it's showing entire stack. is, @ first line: "c:/ruby200/lib/ruby/gems/2.0.0/gems/listen-.0.2/lib/listen/adapter.rb:195:in 'require': cannot load such file -- wdm (loaderror)"
that origin of error. lines after show methods called there.
so need solve "c:/ruby200/lib/ruby/gems/2.0.0/gems/listen-.0.2/lib/listen/adapter.rb:195:in 'require': cannot load such file -- wdm (loaderror)"
i found answer here: guard won't load wdm
the listen gem needs wdm gem work on windows. can accomplish adding line gemfile:
gem 'wdm', '>= 0.1.0' if rbconfig::config['target_os'] =~ /mswin|mingw/i
this line says if operating system 'mwin' or 'mingw', 'wdm' gem needed.
once you've saved gemfile, run bundler install
again make sure wdm gets installed.
Comments
Post a Comment