`require': incompatible library version

2.2k views Asked by At

I'm using RVM as version management for Ruby and installed Ruby 2.2.5. The bundle is installed completely and successfully. But when I started the rails server using rails s it is giving me 'require': incompatible library version (LoadError) for pg.

I tried re-installation of rvm many times. Cleaned the gemset but the issue still persists.

I'm getting the following error again and again:

.rvm/gems/ruby-2.2.5/gems/pg-0.19.0/lib/pg.rb:4:in `require': incompatible library version - /home/user/.rvm/gems/ruby-2.2.5/gems/pg-0.19.0/lib/pg_ext.so (LoadError)

Any help will be highly appreciated.

0

There are 0 answers