我开始学习Ruby on Rails,但每当我把命令" rails server"时,这就是我得到的堆栈跟踪:
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.2.1/lib/tzinto/data_source.rb:182:in `rescue in create_default_data_source': No source of timezone data could be found. (TZInfo::DataSourceNotFound)
Please refer to http://tzinfo.github.io/datasourcenotfound for help resolving this error
任何人都可以帮助我吗?!
我使用64位Windows 8.1和Rails 4.1.4
答案 0 :(得分:2)
试试这个我必须添加两个宝石才能让服务器启动..
gem 'tzinfo-data'
gem 'tzinfo'
# for 64 bit windows:
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]
然后bundle install
。
答案 1 :(得分:2)
来自link:
如果您在Windows上使用64位版本的Ruby,请添加 :x64_mingw到平台列表,如下所示:
gem install 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]