-1

I'm starting to learn Ruby on Rails but whenever I put the command "rails server", this is the stack trace I get:

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

Can anybody help me?!

I'm using 64 bit Windows 8.1 with Rails 4.1.4

S. A.
  • 123
  • 1
  • 7
  • 3
    There's a link right in there for you to go to (the github link). Also in the future please paste the errors – Anthony Jul 10 '14 at 11:09

2 Answers2

2

Try this I had to add two gems to get the server to start..

gem 'tzinfo-data'
gem 'tzinfo'

# for 64 bit windows:
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]

Then bundle install.

jigfox
  • 18,057
  • 3
  • 60
  • 73
Gagan Gami
  • 10,121
  • 1
  • 29
  • 55
2

From the link:

If you are using a 64-bit version of Ruby on Windows, then add :x64_mingw to the list of platforms as follows:

gem install 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]
Suriyaa
  • 2,222
  • 2
  • 25
  • 44
Dimitri
  • 2,023
  • 18
  • 23