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

Ruby Build a Todo List Application with Rails 4 Build a Todo List Application with Rails 4 Set up Git and Add Gems

Bahram Sabri
Bahram Sabri
4,523 Points

DL is deprecated, please use Fiddle

Hi, I can not go further with ruby on rails tuts "Build a Todo List Application with Rails 4" because i get this warning DL is deprecated, please use Fiddle, appreciate if some one help me to sort out this.

I use ruby on rails version 2.0.0 on windows 7.

Regards,

Bahram

5 Answers

Hi Bahram. ' DL is deprecated, please use Fiddle ' is actually a warning. The warning message comes out when you require 'irb' ( because irb require 'readline' ) or anything else wants to require 'readline'. If you feel it's annoying, you can comment out it at C:\Ruby200\lib\ruby\2.0.0\dl.rb.

Bahram Sabri
Bahram Sabri
4,523 Points

Hi Tuan, Thanks for the help!

I still don't know how to solve it, I have exactly the same problem. What do I have to do? Each time that I write :

/bundle exec rails server

I got the same answer:

DL is deprecated, please use Fiddle. c:/users/portatil/documents/gemfile not found

Bahram Sabri
Bahram Sabri
4,523 Points

Hi Gabrial, As Tuan Pham said just comment out it at C:\Ruby200\lib\ruby\2.0.0\dl.rb that is all.

Thanks for the answer, I was not getting the "comment out", but when I do it now I have another problem, that's what appear in the cmd screen and I do not understand at all what is not working here.

C:\Users\PortΓ‘til\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:55:in require' from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55: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:55:in require' from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.5.3/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:55:in require' from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.5.3/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:55:in require' from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.5.3/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:55:in require' from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.5.3/lib/bundler/vendo r/thor.rb:2:in <top (required)>' from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require' from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.5.3/lib/bundler/vendo red_thor.rb:7:in<top (required)>' from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require' from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.5.3/lib/bundler/cli.r b:3:in <top (required)>' from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require' from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require' from C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.5.3/bin/bundle:17:in <top (required)>' from C:/Ruby200/bin/bundle:23:in load' from C:/Ruby200/bin/bundle:23:in<main>'