레일

2014-05-19 8 views
0

내가 RoR에의 beginer에 그리고 난 레일 서버 작업을 만들려고 정말 나쁜 시간을 보내고 있어요. 매번 내가레일

rails server 

그것은에 allways 모든 라인을 보여줍니다 명령을 실행

C:\Users\Familia-PC\RoR\holamundo>rails server 
=> Booting WEBrick 
=> Rails 4.1.1 application starting in development on http://0.0.0.0:3000 
=> Run `rails server -h` for more startup options 
=> Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0 
.0.1 (--binding option) 
=> Ctrl-C to shutdown server 
Exiting 
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.1.0/lib/tzinfo/data_source.rb:1 
99:in `rescue in create_default_data_source': No timezone data source could be f 
ound. To resolve this, either install TZInfo::Data (e.g. by running `gem install 
tzinfo-data`) or specify a zoneinfo directory using `TZInfo::DataSource.set(:zo 
neinfo, zoneinfo_path)`. (TZInfo::DataSourceNotFound) 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.1.0/lib/tzinfo/dat 
a_source.rb:196:in `create_default_data_source' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.1.0/lib/tzinfo/dat 
a_source.rb:62:in `block in get' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.1.0/lib/tzinfo/dat 
a_source.rb:61:in `synchronize' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.1.0/lib/tzinfo/dat 
a_source.rb:61:in `get' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.1.0/lib/tzinfo/tim 
ezone.rb:601:in `data_source' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.1.0/lib/tzinfo/tim 
ezone.rb:114:in `get' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.1.0/lib/tzinfo/tim 
ezone_proxy.rb:84:in `real_timezone' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.1.0/lib/tzinfo/tim 
ezone_proxy.rb:52:in `period_for_utc' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.1.0/lib/tzinfo/tim 
ezone.rb:524:in `current_period' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activesupport-4.1.1/lib/act 
ive_support/core_ext/object/try.rb:45:in `public_send' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activesupport-4.1.1/lib/act 
ive_support/core_ext/object/try.rb:45:in `try' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activesupport-4.1.1/lib/act 
ive_support/values/time_zone.rb:223:in `utc_offset' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activesupport-4.1.1/lib/act 
ive_support/values/time_zone.rb:396:in `block in []' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activesupport-4.1.1/lib/act 
ive_support/values/time_zone.rb:396:in `tap' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activesupport-4.1.1/lib/act 
ive_support/values/time_zone.rb:396:in `[]' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activesupport-4.1.1/lib/act 
ive_support/core_ext/time/zones.rb:60:in `find_zone!' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activesupport-4.1.1/lib/act 
ive_support/railtie.rb:20:in `block in <class:Railtie>' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.1/lib/rails/in 
itializable.rb:30:in `instance_exec' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.1/lib/rails/in 
itializable.rb:30:in `run' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.1/lib/rails/in 
itializable.rb:55:in `block in run_initializers' 
     from C:/Ruby200-x64/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each' 

     from C:/Ruby200-x64/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in 
each_strongly_connected_component' 
     from C:/Ruby200-x64/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connec 
ted_component_from' 
     from C:/Ruby200-x64/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strong 
ly_connected_component' 
     from C:/Ruby200-x64/lib/ruby/2.0.0/tsort.rb:180:in `each' 
     from C:/Ruby200-x64/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connec 
ted_component' 
     from C:/Ruby200-x64/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.1/lib/rails/in 
itializable.rb:54:in `run_initializers' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.1/lib/rails/ap 
plication.rb:288:in `initialize!' 
     from C:/Users/Familia-PC/RoR/holamundo/config/environment.rb:5:in `<top 
(required)>' 
     from C:/Users/Familia-PC/RoR/holamundo/config.ru:3:in `require' 
     from C:/Users/Familia-PC/RoR/holamundo/config.ru:3:in `block in <main>' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder 
.rb:55:in `instance_eval' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder 
.rb:55:in `initialize' 
     from C:/Users/Familia-PC/RoR/holamundo/config.ru:in `new' 
     from C:/Users/Familia-PC/RoR/holamundo/config.ru:in `<main>' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder 
.rb:49:in `eval' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder 
.rb:49:in `new_from_string' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder 
.rb:40:in `parse_file' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/server. 
rb:277:in `build_app_and_options_from_config' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/server. 
rb:199:in `app' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.1/lib/rails/co 
mmands/server.rb:50:in `app' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/server. 
rb:314:in `wrapped_app' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.1/lib/rails/co 
mmands/server.rb:130:in `log_to_stdout' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.1/lib/rails/co 
mmands/server.rb:67:in `start' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.1/lib/rails/co 
mmands/commands_tasks.rb:81:in `block in server' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.1/lib/rails/co 
mmands/commands_tasks.rb:76:in `tap' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.1/lib/rails/co 
mmands/commands_tasks.rb:76:in `server' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.1/lib/rails/co 
mmands/commands_tasks.rb:40:in `run_command!' 
     from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.1/lib/rails/co 
mmands.rb:17:in `<top (required)>' 
     from bin/rails:4:in `require' 
     from bin/rails:4:in `<main>' 

나는 너희들이 나에게이 문제 넣어

+0

당신은이 문제가있는 유일한 사람이 아닙니다. 이것은 당신이 선호하는 대답은 아니지만'Rails 4.1'의 안정적인 릴리스로 돌아 가면 도움이 될 것입니다. 'gem "rails", : git => "git : //github.com/rails/rails.git", : branch => "4-1-stable"'. 즉, 나는 Matheus의 대답을 사용하여 몇몇 사람들이이 문제를 해결하는 것을 보았다. –

+0

[TZInfo :: DataSourceNotFound 오류로 인해 Windows에서 Rails v4.1.0 서버가 시작될 수 있습니다.] (http://stackoverflow.com/questions/23022258/tzinfodatasourcenotfound-error-starting-rails-v4-1-0-server-on- windows) –

+0

이 문제를 해결하는 방법과 동일한 문제가 발생했습니다 – vinodh

답변

1

를 해결하는 데 도움 수 있기를 바랍니다 당신의 gemfile이 :

gem "tzinfo-data" 
+1

나는 왜 당신이 downvoted있어 모르겠어요. 그것은 그/그녀의 문제에 대한 가능한 해결책입니다. –

+1

... 이미 오류 메시지에 표시되어 있으므로 추가하고 싶습니다. ;-) –

+1

답장을 보내 주셔서 감사합니다.하지만 내 보석 파일에 이미 있습니다. 어쨌든 나는 해결책을 찾았고, 단지 x64_mingw를 보석 "tzinfo-data"배열에 추가해야만했다. – DanielHolguin