Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Ruby Installing a Ruby Development Environment Installing a Ruby Development Environment Installing Ruby on Windows

Kalen Loncar
Kalen Loncar
8,743 Points

Scope error, can not fix. Please help!

I followed the instructions in the video completely. I tried solving this problem on my own by attempting to install without documentation, with no better luck. I am on Windows 8, 64 bit computer. I originally tried with the newest version of ruby and the 64 bit download for each, with the same issue. I thought the problem was the 64 bit version on windows 8, but then tried the same version as is being used in the video. I have been seeing "DL is Deprecated" all night. Any help would be greatly appreciated. Thanks!

Also, are there any disadvantages to using the Treehouse Virtual Machine?

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\Kalen>ruby -v
ruby 2.0.0p353 (2013-11-22) [i386-mingw32]

C:\Users\Kalen>gem install bundler
Fetching: bundler-1.6.2.gem (100%)
Successfully installed bundler-1.6.2
Parsing documentation for bundler-1.6.2
Installing ri documentation for bundler-1.6.2
1 gem installed

C:\Users\Kalen>gem install sqlite3
Fetching: sqlite3-1.3.9-x86-mingw32.gem (100%)
Successfully installed sqlite3-1.3.9-x86-mingw32
Parsing documentation for sqlite3-1.3.9-x86-mingw32
unable to convert "\x90" from ASCII-8BIT to UTF-8 for lib/sqlite3/1.8/sqlite3_na
tive.so, skipping
unable to convert "\x90" from ASCII-8BIT to UTF-8 for lib/sqlite3/1.9/sqlite3_na
tive.so, skipping
unable to convert "\x90" from ASCII-8BIT to UTF-8 for lib/sqlite3/2.0/sqlite3_na
tive.so, skipping
Installing ri documentation for sqlite3-1.3.9-x86-mingw32
1 gem installed

C:\Users\Kalen>gem install rails
Fetching: i18n-0.6.9.gem (100%)
Successfully installed i18n-0.6.9
Fetching: thread_safe-0.3.3.gem (100%)
Successfully installed thread_safe-0.3.3
Fetching: tzinfo-1.1.0.gem (100%)
Successfully installed tzinfo-1.1.0
Fetching: minitest-5.3.3.gem (100%)
Successfully installed minitest-5.3.3
Fetching: activesupport-4.1.1.gem (100%)
Successfully installed activesupport-4.1.1
Fetching: rack-1.5.2.gem (100%)
Successfully installed rack-1.5.2
Fetching: rack-test-0.6.2.gem (100%)
Successfully installed rack-test-0.6.2
Fetching: builder-3.2.2.gem (100%)
Successfully installed builder-3.2.2
Fetching: erubis-2.7.0.gem (100%)
Successfully installed erubis-2.7.0
Fetching: actionview-4.1.1.gem (100%)
Successfully installed actionview-4.1.1
Fetching: actionpack-4.1.1.gem (100%)
Successfully installed actionpack-4.1.1
Fetching: activemodel-4.1.1.gem (100%)
Successfully installed activemodel-4.1.1
Fetching: arel-5.0.1.20140414130214.gem (100%)
Successfully installed arel-5.0.1.20140414130214
Fetching: activerecord-4.1.1.gem (100%)
Successfully installed activerecord-4.1.1
Fetching: mime-types-1.25.1.gem (100%)
Successfully installed mime-types-1.25.1
Fetching: polyglot-0.3.4.gem (100%)
Successfully installed polyglot-0.3.4
Fetching: treetop-1.4.15.gem (100%)
Successfully installed treetop-1.4.15
Fetching: mail-2.5.4.gem (100%)
Successfully installed mail-2.5.4
Fetching: actionmailer-4.1.1.gem (100%)
Successfully installed actionmailer-4.1.1
Fetching: thor-0.19.1.gem (100%)
Successfully installed thor-0.19.1
Fetching: railties-4.1.1.gem (100%)
Successfully installed railties-4.1.1
Fetching: hike-1.2.3.gem (100%)
Successfully installed hike-1.2.3
Fetching: multi_json-1.10.0.gem (100%)
Successfully installed multi_json-1.10.0
Fetching: tilt-1.4.1.gem (100%)
Successfully installed tilt-1.4.1
Fetching: sprockets-2.12.1.gem (100%)
Successfully installed sprockets-2.12.1
Fetching: sprockets-rails-2.1.3.gem (100%)
Successfully installed sprockets-rails-2.1.3
Fetching: rails-4.1.1.gem (100%)
Successfully installed rails-4.1.1
Parsing documentation for i18n-0.6.9
Installing ri documentation for i18n-0.6.9
Parsing documentation for thread_safe-0.3.3
Installing ri documentation for thread_safe-0.3.3
Parsing documentation for tzinfo-1.1.0
Installing ri documentation for tzinfo-1.1.0
Parsing documentation for minitest-5.3.3
Installing ri documentation for minitest-5.3.3
Parsing documentation for activesupport-4.1.1
unable to convert "\x80" from ASCII-8BIT to UTF-8 for lib/active_support/values/
unicode_tables.dat, skipping
Installing ri documentation for activesupport-4.1.1
Parsing documentation for rack-1.5.2
Installing ri documentation for rack-1.5.2
Parsing documentation for rack-test-0.6.2
Installing ri documentation for rack-test-0.6.2
Parsing documentation for builder-3.2.2
Installing ri documentation for builder-3.2.2
Parsing documentation for erubis-2.7.0
Installing ri documentation for erubis-2.7.0
Parsing documentation for actionview-4.1.1
Installing ri documentation for actionview-4.1.1
Parsing documentation for actionpack-4.1.1
Installing ri documentation for actionpack-4.1.1
ERROR:  While executing gem ... (Errno::EINVAL)
    Invalid argument - ./ActionDispatch/Routing/Mapper/Scoping/:

C:\Users\Kalen>gem install --no-rdoc --no-ri rails
Successfully installed rails-4.1.1
1 gem installed

C:\Users\Kalen>cd Documents

C:\Users\Kalen\Documents>rails new testapp
DL is deprecated, please use Fiddle
       exist
   identical  README.rdoc
   identical  Rakefile
   identical  config.ru
   identical  .gitignore
   identical  Gemfile
       exist  app
   identical  app/assets/javascripts/application.js
   identical  app/assets/stylesheets/application.css
   identical  app/controllers/application_controller.rb
   identical  app/helpers/application_helper.rb
   identical  app/views/layouts/application.html.erb
   identical  app/assets/images/.keep
   identical  app/mailers/.keep
   identical  app/models/.keep
   identical  app/controllers/concerns/.keep
   identical  app/models/concerns/.keep
       exist  bin
   identical  bin/bundle
   identical  bin/rails
   identical  bin/rake
       exist  config
   identical  config/routes.rb
   identical  config/application.rb
   identical  config/environment.rb
    conflict  config/secrets.yml
</config/secrets.yml? (enter "h" for help) [Ynaqdh] y
       force  config/secrets.yml
       exist  config/environments
   identical  config/environments/development.rb
   identical  config/environments/production.rb
   identical  config/environments/test.rb
       exist  config/initializers
   identical  config/initializers/backtrace_silencers.rb
   identical  config/initializers/cookies_serializer.rb
   identical  config/initializers/filter_parameter_logging.rb
   identical  config/initializers/inflections.rb
   identical  config/initializers/mime_types.rb
   identical  config/initializers/session_store.rb
   identical  config/initializers/wrap_parameters.rb
       exist  config/locales
   identical  config/locales/en.yml
   identical  config/boot.rb
   identical  config/database.yml
       exist  db
   identical  db/seeds.rb
       exist  lib
       exist  lib/tasks
   identical  lib/tasks/.keep
       exist  lib/assets
   identical  lib/assets/.keep
       exist  log
   identical  log/.keep
       exist  public
   identical  public/404.html
   identical  public/422.html
   identical  public/500.html
   identical  public/favicon.ico
   identical  public/robots.txt
       exist  test/fixtures
   identical  test/fixtures/.keep
       exist  test/controllers
   identical  test/controllers/.keep
       exist  test/mailers
   identical  test/mailers/.keep
       exist  test/models
   identical  test/models/.keep
       exist  test/helpers
   identical  test/helpers/.keep
       exist  test/integration
   identical  test/integration/.keep
   identical  test/test_helper.rb
       exist  tmp/cache
       exist  tmp/cache/assets
       exist  vendor/assets/javascripts
   identical  vendor/assets/javascripts/.keep
       exist  vendor/assets/stylesheets
   identical  vendor/assets/stylesheets/.keep
         run  bundle install
DL is deprecated, please use Fiddle
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
Fetching gem metadata from https://rubygems.org/.........
Fetching additional metadata from https://rubygems.org/..
Installing rake 10.3.1
Using i18n 0.6.9
Installing json 1.8.1
Using minitest 5.3.3
Using thread_safe 0.3.3
Using tzinfo 1.1.0
Using activesupport 4.1.1
Using builder 3.2.2
Using erubis 2.7.0
Using actionview 4.1.1
Using rack 1.5.2
Using rack-test 0.6.2
Using actionpack 4.1.1
Using mime-types 1.25.1
Using polyglot 0.3.4
Using treetop 1.4.15
Using mail 2.5.4
Using actionmailer 4.1.1
Using activemodel 4.1.1
Using arel 5.0.1.20140414130214
Using activerecord 4.1.1
Installing coffee-script-source 1.7.0
Installing execjs 2.0.2
Installing coffee-script 2.2.0
Using thor 0.19.1
Using railties 4.1.1
Installing coffee-rails 4.0.1
Using hike 1.2.3
Using multi_json 1.10.0
Installing jbuilder 2.0.7
Installing jquery-rails 3.1.0
Using bundler 1.6.2
Using tilt 1.4.1
Installing sprockets 2.11.0
Using sprockets-rails 2.1.3
Using rails 4.1.1
Installing rdoc 4.1.1
Installing sass 3.2.19
Installing sass-rails 4.0.3
Installing sdoc 0.4.0
Using sqlite3 1.3.9
Installing turbolinks 2.2.2
Installing tzinfo-data 1.2014.2
Installing uglifier 2.5.0
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
Post-install message from rdoc:
Depending on your version of ruby, you may need to install ruby rdoc/ri data:

<= 1.8.6 : unsupported
 = 1.8.7 : gem install rdoc-data; rdoc-data --install
 = 1.9.1 : gem install rdoc-data; rdoc-data --install
>= 1.9.2 : nothing to do! Yay!

C:\Users\Kalen\Documents>rails new testapp
DL is deprecated, please use Fiddle
       exist
   identical  README.rdoc
   identical  Rakefile
   identical  config.ru
   identical  .gitignore
   identical  Gemfile
       exist  app
   identical  app/assets/javascripts/application.js
   identical  app/assets/stylesheets/application.css
   identical  app/controllers/application_controller.rb
   identical  app/helpers/application_helper.rb
   identical  app/views/layouts/application.html.erb
   identical  app/assets/images/.keep
   identical  app/mailers/.keep
   identical  app/models/.keep
   identical  app/controllers/concerns/.keep
   identical  app/models/concerns/.keep
       exist  bin
   identical  bin/bundle
   identical  bin/rails
   identical  bin/rake
       exist  config
   identical  config/routes.rb
   identical  config/application.rb
   identical  config/environment.rb
    conflict  config/secrets.yml
</config/secrets.yml? (enter "h" for help) [Ynaqdh]

2 Answers

Stone Preston
Stone Preston
42,016 Points

DL is deprecated please use fiddle is just a warning that is common to windows. see this stack overflow post for information on how to suppress that warning.

What are you using to install ruby/rails? RubyInstaller?

Kalen Loncar
Kalen Loncar
8,743 Points

Yes, I am using the same 32 bit version of each as in the video. I tried your suggestion, it installed rails, but when I typed in "bundle rails exec server" I didn't the same result at all, and localhost was still not found. Stone Preston

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\Kalen>gem install rails
Successfully installed rails-4.1.1
Parsing documentation for rails-4.1.1
Done installing documentation for rails after 2 seconds
1 gem installed

C:\Users\Kalen>cd Documents

C:\Users\Kalen\Documents>rails new testapp
C:/Ruby200/lib/ruby/site_ruby/2.0.0/rbreadline.rb:4372:in `<class:Win32API>': un
initialized constant RbReadline::Win32API::DL (NameError)
        from C:/Ruby200/lib/ruby/site_ruby/2.0.0/rbreadline.rb:4370:in `<module:
RbReadline>'
        from C:/Ruby200/lib/ruby/site_ruby/2.0.0/rbreadline.rb:15:in `<top (requ
ired)>'
        from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:114:i
n `require'
        from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:114:i
n `require'
        from C:/Ruby200/lib/ruby/site_ruby/2.0.0/readline.rb:10:in `<module:Read
line>'
        from C:/Ruby200/lib/ruby/site_ruby/2.0.0/readline.rb:8:in `<top (require
d)>'
        from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:114:i
n `require'
        from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:114:i
n `require'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/thor-0.19.1/lib/thor/line_edito
r/readline.rb:2:in `<top (required)>'
        from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:66:in
 `require'
        from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:66:in
 `require'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/thor-0.19.1/lib/thor/line_edito
r.rb:2:in `<top (required)>'
        from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:66:in
 `require'
        from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:66:in
 `require'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/thor-0.19.1/lib/thor/base.rb:8:
in `<top (required)>'
        from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:66:in
 `require'
        from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:66:in
 `require'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/thor-0.19.1/lib/thor/group.rb:1
:in `<top (required)>'
        from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:66:in
 `require'
        from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:66:in
 `require'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.1.1/lib/rails/genera
tors.rb:4:in `<top (required)>'
        from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:66:in
 `require'
        from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:66:in
 `require'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.1.1/lib/rails/comman
ds/application.rb:1:in `<top (required)>'
        from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:66:in
 `require'
        from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:66:in
 `require'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.1.1/lib/rails/cli.rb
:14:in `<top (required)>'
        from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:66:in
 `require'
        from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:66:in
 `require'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.1.1/bin/rails:9:in `
<top (required)>'
        from C:/Ruby200/bin/rails:23:in `load'
        from C:/Ruby200/bin/rails:23:in `<main>'

C:\Users\Kalen\Documents>cd testapp

C:\Users\Kalen\Documents\testapp>dir
 Volume in drive C has no label.
 Volume Serial Number is 287B-1CAF

 Directory of C:\Users\Kalen\Documents\testapp

05/12/2014  12:17 AM    <DIR>          .
05/12/2014  12:17 AM    <DIR>          ..
05/11/2014  05:36 PM               466 .gitignore
05/11/2014  05:36 PM    <DIR>          app
05/11/2014  05:36 PM    <DIR>          bin
05/12/2014  03:19 AM    <DIR>          config
05/11/2014  05:36 PM               154 config.ru
05/11/2014  05:36 PM    <DIR>          db
05/11/2014  05:36 PM             1,288 Gemfile
05/12/2014  02:43 AM             2,969 Gemfile.lock
05/11/2014  05:36 PM    <DIR>          lib
05/11/2014  05:45 PM    <DIR>          log
05/12/2014  12:17 AM    <DIR>          public
05/11/2014  05:36 PM               249 Rakefile
05/11/2014  05:36 PM               478 README.rdoc
05/11/2014  05:36 PM    <DIR>          test
05/11/2014  05:45 PM    <DIR>          tmp
05/11/2014  05:36 PM    <DIR>          vendor
               6 File(s)          5,604 bytes
              12 Dir(s)  666,480,259,072 bytes free

C:\Users\Kalen\Documents\testapp>bundle exec rails server
C:/Ruby200/lib/ruby/site_ruby/2.0.0/rbreadline.rb:4372:in `<class:Win32API>': un
initialized constant RbReadline::Win32API::DL (NameError)
        from C:/Ruby200/lib/ruby/site_ruby/2.0.0/rbreadline.rb:4370:in `<module:
RbReadline>'
        from C:/Ruby200/lib/ruby/site_ruby/2.0.0/rbreadline.rb:15:in `<top (requ
ired)>'
        from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in
 `require'
        from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in
 `require'
        from C:/Ruby200/lib/ruby/site_ruby/2.0.0/readline.rb:10:in `<module:Read
line>'
        from C:/Ruby200/lib/ruby/site_ruby/2.0.0/readline.rb:8:in `<top (require
d)>'
        from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in
 `require'
        from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in
 `require'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.6.2/lib/bundler/vendo
r/thor/line_editor/readline.rb:2:in `<top (required)>'
        from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in
 `require'
        from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in
 `require'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.6.2/lib/bundler/vendo
r/thor/line_editor.rb:2:in `<top (required)>'
        from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in
 `require'
        from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in
 `require'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.6.2/lib/bundler/vendo
r/thor/base.rb:8:in `<top (required)>'
        from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in
 `require'
        from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in
 `require'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.6.2/lib/bundler/vendo
r/thor.rb:2:in `<top (required)>'
        from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in
 `require'
        from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in
 `require'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.6.2/lib/bundler/vendo
red_thor.rb:7:in `<top (required)>'
        from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in
 `require'
        from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in
 `require'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.6.2/lib/bundler/cli.r
b:2:in `<top (required)>'
        from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in
 `require'
        from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in
 `require'
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.6.2/bin/bundle:17:in
`<top (required)>'
        from C:/Ruby200/bin/bundle:23:in `load'
        from C:/Ruby200/bin/bundle:23:in `<main>'

C:\Users\Kalen\Documents\testapp>