Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
josepharciero2
2,992 PointsInstalling Ruby on Rails on Windows
I watched the "Installing Ruby on Rails video on Windows" video on a Windows 7 64 bit machine.. Everything works great until I actually attempt to start the Ruby server. I get the following page full of errors. Please view the errors I receive below.
I followed the error instructions and installed the "tzinfo-data" GEM, but still experiencing the same errors.
PLEASE HELP!!!
Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\User>bundle exec rails server DL is deprecated, please use Fiddle Could not locate Gemfile
C:\Users\User>cd testapp The system cannot find the path specified.
C:\Users\User>cd ..
C:\Users>cd ..
C:>cd documents The system cannot find the path specified.
C:>cd documents The system cannot find the path specified.
C:>cd Users
C:\Users>cd documents The system cannot find the path specified.
C:\Users>cd user
C:\Users\User>cd documents
C:\Users\User\Documents>cd testapp
C:\Users\User\Documents\testapp>bundle exec rails server
DL is deprecated, please use Fiddle
=> Booting WEBrick
=> Rails 4.1.5 application starting in development on http://0.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.2.2/lib/tzinfo/data_source.rb:1
82:in rescue in create_default_data_source': No source of timezone data could b
e found. (TZInfo::DataSourceNotFound)
Please refer to http://tzinfo.github.io/datasourcenotfound for help resolving th
is error.
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.2.2/lib/tzinfo/dat
a_source.rb:179:increate_default_data_source'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.2.2/lib/tzinfo/dat
a_source.rb:40:in block in get'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.2.2/lib/tzinfo/dat
a_source.rb:39:insynchronize'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.2.2/lib/tzinfo/dat
a_source.rb:39:in get'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.2.2/lib/tzinfo/tim
ezone.rb:629:indata_source'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.2.2/lib/tzinfo/tim
ezone.rb:92:in get'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.2.2/lib/tzinfo/tim
ezone_proxy.rb:67:inreal_timezone'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.2.2/lib/tzinfo/tim
ezone_proxy.rb:30:in period_for_utc'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.2.2/lib/tzinfo/tim
ezone.rb:549:incurrent_period'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activesupport-4.1.5/lib/act
ive_support/core_ext/object/try.rb:45:in public_send'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activesupport-4.1.5/lib/act
ive_support/core_ext/object/try.rb:45:intry'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activesupport-4.1.5/lib/act
ive_support/values/time_zone.rb:223:in utc_offset'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activesupport-4.1.5/lib/act
ive_support/values/time_zone.rb:396:inblock in []'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activesupport-4.1.5/lib/act
ive_support/values/time_zone.rb:396:in tap'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activesupport-4.1.5/lib/act
ive_support/values/time_zone.rb:396:in[]'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activesupport-4.1.5/lib/act
ive_support/core_ext/time/zones.rb:60:in find_zone!'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/activesupport-4.1.5/lib/act
ive_support/railtie.rb:20:inblock in <class:Railtie>'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.5/lib/rails/in
itializable.rb:30:in instance_exec'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.5/lib/rails/in
itializable.rb:30:inrun'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.5/lib/rails/in
itializable.rb:55:in block in run_initializers'
from C:/Ruby200-x64/lib/ruby/2.0.0/tsort.rb:150:inblock in tsort_each'
from C:/Ruby200-x64/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in
each_strongly_connected_component'
from C:/Ruby200-x64/lib/ruby/2.0.0/tsort.rb:219:in each_strongly_connec
ted_component_from'
from C:/Ruby200-x64/lib/ruby/2.0.0/tsort.rb:182:inblock in each_strong
ly_connected_component'
from C:/Ruby200-x64/lib/ruby/2.0.0/tsort.rb:180:in each'
from C:/Ruby200-x64/lib/ruby/2.0.0/tsort.rb:180:ineach_strongly_connec
ted_component'
from C:/Ruby200-x64/lib/ruby/2.0.0/tsort.rb:148:in tsort_each'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.5/lib/rails/in
itializable.rb:54:inrun_initializers'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.5/lib/rails/ap
plication.rb:300:in initialize!'
from C:/Users/User/Documents/testapp/config/environment.rb:5:in<top (r
equired)>'
from C:/Users/User/Documents/testapp/config.ru:3:in require'
from C:/Users/User/Documents/testapp/config.ru:3:inblock in <main>'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder
.rb:55:in instance_eval'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder
.rb:55:ininitialize'
from C:/Users/User/Documents/testapp/config.ru:in new'
from C:/Users/User/Documents/testapp/config.ru:in<main>'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder
.rb:49:in eval'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder
.rb:49:innew_from_string'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder
.rb:40:in parse_file'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/server.
rb:277:inbuild_app_and_options_from_config'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/server.
rb:199:in app'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.5/lib/rails/co
mmands/server.rb:50:inapp'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/server.
rb:314:in wrapped_app'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.5/lib/rails/co
mmands/server.rb:130:inlog_to_stdout'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.5/lib/rails/co
mmands/server.rb:67:in start'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.5/lib/rails/co
mmands/commands_tasks.rb:81:inblock in server'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.5/lib/rails/co
mmands/commands_tasks.rb:76:in tap'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.5/lib/rails/co
mmands/commands_tasks.rb:76:inserver'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.5/lib/rails/co
mmands/commands_tasks.rb:40:in run_command!'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.1.5/lib/rails/co
mmands.rb:17:in<top (required)>'
from bin/rails:4:in require'
from bin/rails:4:in<main>'
C:\Users\User\Documents\testapp>
2 Answers
Maciej Czuchnowski
36,441 PointsUninstall the 64 bit version of Ruby and use 32 bit version instead. There are a lot of problems with 64 bit version for some reason. If that doesn't help, we will try to find another solution. Also, consider using Linux for Rails development in the long term. With Windows you won't be able to use some of the commands shown in the videos and you will likely get more errors along the way.
josepharciero2
2,992 PointsHello Maciej,
Thanks a million for the suggestion. I will try the 32 bit version. So if I go with Linux, do you recommend I install it on my Windows PC in a separate boot sector or a completely dedicated Linux box?
Maciej Czuchnowski
36,441 PointsI personally use the free VMWare Player. This gives you a lot of room for experiments and does not affect your main system at all. You can also use the virtual machines that Treehouse provides.