Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

undefined symbol: rb_thread_select

Hi I have working with rbenv and using rails application it is working good, when I switched application to another computer , After bundle install

When I run "rails s" or "bundle exec rails s"

This is error come

/home/{user}/.rbenv/versions/2.2.2/bin/ruby: symbol lookup error: /home/{user}/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/extensions/x86_64-linux/2.2.0-static/pg-0.13.2/pg_ext.so: undefined symbol: rb_thread_select

can anyone guide how to overcome this solution

like image 363
Ali Abbas Avatar asked Dec 25 '22 14:12

Ali Abbas


1 Answers

The pg gem you are using 0.13.2 is referencing to a ruby method rb_thread_select, which is not present in 2.2.0+. It was there in the older version of ruby. So you can't use that version of pg in ruby 2.2.0+.

Upgrade to a version 0.15.0 +, which doesn't use rb_thread_select

like image 194
coderhs Avatar answered Jan 13 '23 17:01

coderhs