Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The message you received is common when you have <strong><code>ruby 2.0.0p0 (2013-02-24)</code></strong> on top of <strong>Windows</strong>.</p> <p>The message "<code>DL is deprecated, please use Fiddle</code>" <strong>is not an error; it's only a warning</strong>.</p> <p>The source is the <a href="https://github.com/ruby/ruby/tree/trunk/ext/dl/lib" rel="noreferrer">Deprecation notice for DL</a> introduced some time ago in <code>dl.rb</code> ( see <a href="https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/37910/entry/ext/dl/lib/dl.rb" rel="noreferrer">revisions/37910</a> ).</p> <p>On Windows the <code>lib/ruby/site_ruby/2.0.0/readline.rb</code> file still requires <code>dl.rb</code> so the <strong>warning message</strong> comes out when you <code>require 'irb'</code> ( because irb requires <code>'readline'</code> ) or when anything else wants to <code>require 'readline'</code>.</p> <p>You can open <code>readline.rb</code> with your favorite text editor and look up the code ( near line 4369 ):</p> <pre><code> if RUBY_VERSION &lt; '1.9.1' require 'Win32API' else require 'dl' class Win32API DLL = {} </code></pre> <p>We can always hope for an improvement to work out this deprecation in future releases of <a href="http://www.ruby-lang.org/en/" rel="noreferrer">Ruby</a>.</p> <p>EDIT: For those wanting to go deeper about <strong>Fiddle</strong> vs <strong>DL</strong>, let it be said that their purpose is to dynamically link external libraries with Ruby; you can read on the ruby-doc website about <a href="http://www.ruby-doc.org/stdlib-2.0.0/libdoc/dl/rdoc/DL.html" rel="noreferrer">DL</a> or <a href="http://ruby-doc.org/stdlib-2.0.0/libdoc/fiddle/rdoc/Fiddle.html" rel="noreferrer">Fiddle</a>.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload