Hi, when I try to run rails server
, it just exits and displays the message below:
C:\rails_project\first_app>rails s
=> Booting WEBrick
=> Rails 4.1.0 application starting in development on http0 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)
Could somebody let me know what i am missing?
I don't know if you're still with that problem, i was struggling with the same issue, until after a couple weeks i finally solved it. that is a problem with x64 machines.
just go to your gemfile and search for gem 'tzinfo-data'
then in the array add this :x64_mingw
it must look like this
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]
then save, do bundle update
and then bundle install
, and luckyly your rails server will start.
Sounds like you need:
gem install tzinfo
I have tzinfo 1.1.0 installed on my machine.
Another package you might need is:
gem install tzinfo-data
Be sure to add it to your Gemfile:
gem 'tzinfo-data', '1.2014.5'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With