1. Michael Granger
  2. ruby-pg
  3. Issues

Issues

Issue #140 invalid

libpq.5.dylib requires version 1.0.0 or later, but libssl.dylib provides version 0.9.8

DennisBB
created an issue

Many ppl are getting this error including myself and I haven't seen it answered anywhere on the internet.

http://pastebin.com/AFRn1YUV

Comments (3)

  1. DennisBB reporter

    All that I did was to install PostgreSQL, rvm, ruby 1.9.3, rails with pg and everything compiled successfully.

    Upon creating a rails app and running 'rails server'. That error came up. When I comment out pg gem in Gemfile, everything runs successfully.

  2. Michael Granger repo owner

    Your PostgreSQL client library (libpq) was compiled against a different version of OpenSSL (libssl) than your dynamic linker is loading. This is not a problem with the 'pg' gem: libpq is part of PostgreSQL itself, and libssl is part of the OpenSSL library. You have to fix your environment before 'pg' can use it. This happens quite often when someone tries to replace the 'libpq' that comes with MacOS X (/usr/lib/libpq.dylib) with a version they've built themselves. If you don't ensure that your build also links against the libssl and libcrypto in /usr/lib (which are both version 0.9.8), loading it later causes this error.

  3. Log in to comment