Skip to content

Instantly share code, notes, and snippets.

@ugisozols
Last active August 29, 2015 14:12
Show Gist options
  • Save ugisozols/78db365c2f5a627b00f7 to your computer and use it in GitHub Desktop.
Save ugisozols/78db365c2f5a627b00f7 to your computer and use it in GitHub Desktop.
Ruby 2.2.0 and passenger 4.0.56 fix for undefined symbol: rb_thread_blocking_region

After installing Ruby 2.2.0 and the latest version of passenger (as of this writing) 4.0.56 I started to get this error in nginx error.log:

symbol lookup error: /opt/rubies/ruby-2.2.0/lib/ruby/gems/2.2.0/gems/passenger-4.0.56/buildout/ruby/ruby-2.2.0-x86_64-linux/passenger_native_support.so: undefined symbol: rb_thread_blocking_region

After a quick google search I found phusion/passenger#1314 (comment).

I'm using ruby-install so I re-installed the Ruby 2.2.0 using this command:

ruby-install ruby 2.2.0 -- --enable-shared

Then re-installed passenger and the error went away.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment