启动服务器webrick时出现错误:web
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/tzinfo-1.2.2/lib/tzinfo/data_source.rb:182:in `rescue in create_default_data_source': No source of timezone data could be found. (TZInfo::DataSourceNotFound)windows
1. 在应用目录下(例如...\Blog\)运行如下命令:服务器
gem isntall tzinfo-dataspa
2. 修改Gemfile文件,在gem 'tzinfo-data'一行加入:x64_mingw(只有64位ruby执行这一步)3d
gem 'tzinfo-data', platforms: [:x64_mingw, :mingw, :mswin]orm
3. 再次运行bundle命令:server
bundle update blog
从新启动一下服务器吧~~ip
问题解决了~~开心呀~~