redis / hiredis-rb

Ruby wrapper for hiredis
BSD 3-Clause "New" or "Revised" License
320 stars 90 forks source link

Hiredis and ruby 2.2 #34

Closed looseend closed 9 years ago

looseend commented 9 years ago

I upgraded to ruby 2.2 and got this error:

dyld: lazy symbol binding failed: Symbol not found: _rb_thread_select
  Referenced from: /Users/jsinglet/.rvm/gems/ruby-2.2.0/extensions/x86_64-darwin-14/2.2.0/hiredis-0.4.5/hiredis/ext/hiredis_ext.bundle
  Expected in: flat namespace

dyld: Symbol not found: _rb_thread_select
  Referenced from: /Users/jsinglet/.rvm/gems/ruby-2.2.0/extensions/x86_64-darwin-14/2.2.0/hiredis-0.4.5/hiredis/ext/hiredis_ext.bundle
  Expected in: flat namespace

Seems like the _rb_thread_select method has been renamed to rb_thread_fd_select in ruby 2.2

Downgrading to ruby 2.1.5 makes this issue go away

https://bugs.ruby-lang.org/issues/9502

OrelSokolov commented 9 years ago

:+1: I have this issue too.

badboy commented 9 years ago

Did you recompile after updating? If not, that's the issue. If you did, can you try with the new-release branch? https://github.com/redis/hiredis-rb/tree/new-release

looseend commented 9 years ago

I've updated and it's working fine now thanks.

badboy commented 9 years ago

Thanks, I'll get the release done this week.