With RailsInstaller 3.1.0 (Ruby 2.1) on Windows 2008 Server (32bit) I can't start my rails server because of the following error:
D:/RailsInstaller/Ruby2.1.0/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)`
In my Gemfile I am using the following entry for tzinfo-data:
Have you unpacked the tzinfo-data gem? The path option is supposed to reference the unpacked location for the gem (see http://bundler.io/gemfile.html). It sounds like you are saying that you have just downloaded tzinfo-data-1.2016.1.gem and saved it to C:\Temp (which won't work).
@philr Thanks for the pointers, I have installed the gem as you recommended at it is located in D:\RailsInstaller\Ruby2.1.0\lib\ruby\gems\2.1.0\gems\tzinfo-data-1.2016.1\lib\tzinfo\data but still I get the same error message when I start the rails server.
How can I specify the tzinfo/data load path in Ruby? And in which config file would that be?
Have you run bundle update since installing the tzinfo-data gem and modifying your Gemfile? If you don't have access to the Internet, then you'll need to either run bundle update --local or run bundle update on a different machine and then transfer the Gemfile.lock file across.
Bundler will take care of adding the gems you specify to the Ruby load path.
You might like to look at the section on Deploying Your Application in the Bundler documentation, which covers a process for deploying to a machine that doesn't have Internet access.
i have the error :
C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/tzinfo-1.2.3/lib/tzinfo/data_source.rb:182:in `rescue in create_default_data_source': No source of timezone data could be found. (TZInfo::DataSourceNotFound)
But i did all the trick below and nothings change.
I'm on windows (ruby 2.3.3 rails 4.2.6)
i have in my gemfile the link to tzinfo-data
i try to reinstal, bundle update etc, but i'm always facing the same issue.