ruby / curses

Ruby binding for curses, ncurses, and PDCurses. Formerly part of the ruby standard library.
Other
297 stars 34 forks source link

Using / downloading Curses on ruby 2.3.0 #36

Closed OmG3r closed 5 years ago

OmG3r commented 7 years ago

I downloaded curses using "gem install curses", while using ruby 2.3.0 whenever i attempt to start a script in which i used curses i get "

C:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:5 5:in require': cannot load such file -- curses.so (LoadError) from C:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel _require.rb:55:inrequire' from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/curses-1.2.3-x 86-mingw32/lib/curses.rb:17:in rescue in <top (required)>' from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/curses-1.2.3-x 86-mingw32/lib/curses.rb:13:in<top (required)>' from C:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel _require.rb:127:in require' from C:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel _require.rb:127:inrescue in require' from C:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel _require.rb:40:in require' from test.rb:1:in

' tried in 3 different computers, all 2.3.0 ruby version

OmG3r commented 7 years ago

After checking other versions, i was able to use the gem on ruby 2.2.6, and unable to use it on ruby 2.4.1

shugo commented 7 years ago

@OmG3r I've released 1.2.4 to fix this problem. Could you try it?

OmG3r commented 7 years ago

Works on ruby 2.3.3, however it does not work on ruby 2.4.1

plonk commented 7 years ago

I'm having the same issue with ruby 2.4.2. It says on the RubyInstaller page that they have switched to the MSYS2 toolkit. Could that somehow be related?

image

littlepinkbeast commented 6 years ago

This is exactly what I was running into: works fine on 2.3, but not on 2.4 yet.

soanvig commented 6 years ago

This problem only touches Windows users.

shugo commented 5 years ago

This problem has been fixed in 1.2.7 by linking PDCurses statically.