标签:
启动服务器webrick时出现错误:
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)
1. 在应用目录下(例如...\Blog\)运行以下命令:
gem isntall tzinfo-data
2. 修改Gemfile文件,在gem ‘tzinfo-data‘一行加入:x64_mingw(只有64位ruby执行这一步)
gem ‘tzinfo-data‘, platforms: [:x64_mingw, :mingw, :mswin]
3. 再次运行bundle命令:
bundle update
重新启动一下服务器吧~~
问题解决了~~开心呀~~
data_source.rb:182: TZInfo::DataSourceNotFound解决办法
标签:
原文地址:http://www.cnblogs.com/Sophiawow/p/4523026.html