The message you received it's common on ruby 2.0.0p0 (2013-02-24) on top ofWindows
The message "DL is deprecated, please use Fiddle" is not an error; it's only a warninig
The source is the Deprecation notice for DL introduced some time ago in dl.rb ( seerevisions/37910 )
On Windows the lib/ruby/site_ruby/2.0.0/readline.rb still requiredl.rb so the warning message come out when you require 'irb' ( because irb require 'readline' ) or anything else wants torequire 'readline'
You can open with your favorite editor the readline.rb and look up the code ( nearby line 4369)
if RUBY_VERSION < '1.9.1' require 'Win32API' else require 'dl' class Win32API DLL = {}
We can hope for an improvement in work out this deprecation in future release ofruby
本文探讨了在Ruby 2.0.0版本中使用Windows平台时出现的DL is deprecated, please use Fiddle警告信息。此警告源于dl.rb文件中的弃用通知,并在加载readline.rb时触发。文章提供了定位问题根源的方法并讨论了未来版本可能对此问题的改进。

3万+

被折叠的 条评论
为什么被折叠?



