ConnorAtherton / rb-readline

Pure-Ruby Readline Implementation
BSD 3-Clause "New" or "Revised" License
248 stars 54 forks source link

0.5.1 doesn't like mri 1.9.3 #98

Open jonforums opened 10 years ago

jonforums commented 10 years ago

On Win7 32bit...

C:\>uru ruby -rreadline -e "puts RbReadline::RB_READLINE_VERSION"

ruby 2.0.0p378 (2014-01-07 revision 44511) [i386-mingw32]

0.5.1

ruby 1.9.3p488 (2013-12-22 revision 44338) [i386-mingw32]

---> unable to run `ruby -rreadline -e puts RbReadline::RB_READLINE_VERSION`

ruby 2.1.1p4 (2014-01-09 revision 44532) [i386-mingw32]

0.5.1
C:\>cmd -v
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\>uru ls
    200p378     : ruby 2.0.0p378 (2014-01-07 revision 44511) [i386-mingw32]
    211p4       : ruby 2.1.1p4 (2014-01-09 revision 44532) [i386-mingw32]
 => system      : ruby 1.9.3p488 (2013-12-22 revision 44338) [i386-mingw32]

C:\>ruby --version
ruby 1.9.3p488 (2013-12-22 revision 44338) [i386-mingw32]

C:\>ruby -rreadline -e "puts RbReadline::RB_READLINE_VERSION"
C:/ruby193/lib/ruby/site_ruby/1.9.1/rbreadline.rb:4381:in `initialize': undefined method `dlopen' for Fiddle:Module (NoMethodError)
        from C:/ruby193/lib/ruby/site_ruby/1.9.1/rbreadline.rb:4410:in `new'
        from C:/ruby193/lib/ruby/site_ruby/1.9.1/rbreadline.rb:4410:in `<module:RbReadline>'
        from C:/ruby193/lib/ruby/site_ruby/1.9.1/rbreadline.rb:17:in `<top (required)>'
        from C:/ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require'
        from C:/ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require'
        from C:/ruby193/lib/ruby/site_ruby/1.9.1/readline.rb:10:in `<module:Readline>'
        from C:/ruby193/lib/ruby/site_ruby/1.9.1/readline.rb:8:in `<top (required)>'
        from C:/ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require'
        from C:/ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require'
luislavena commented 10 years ago

Damn it 1.9.3/2.0.0 and deprecation warnings.

Will need to put another workaround for Fiddle/DL availability, fun times.

Thank you for the report.

net1957 commented 10 years ago

I confirm on win 8.1 . see https://github.com/oneclick/rubyinstaller/issues/223