dyld: lazy symbol binding failed: Symbol not found: _PQconnectdb

Issue #227 invalid
Former user created an issue

gem installs OK, but during runtime when doing the first db operation, rails crashes with the following:

dyld: lazy symbol binding failed: Symbol not found: _PQconnectdb Referenced from: /Users/christian/Documents/Development/onelogin.com/vendor/bundle/gems/pg-0.14.1/lib/pg_ext.bundle Expected in: flat namespace

dyld: Symbol not found: _PQconnectdb Referenced from: /Users/christian/Documents/Development/onelogin.com/vendor/bundle/gems/pg-0.14.1/lib/pg_ext.bundle Expected in: flat namespace

Trace/BPT trap: 5

I have pretty much tried reinstalling and rebuilding everything at this point.

Using ruby 1.8.7-p375. This has worked fine for a long time, but after installing the gem, it doesn't.

Thank you

Comments (2)

  1. Michael Granger repo owner

    This means that the libpq library the gem was built with is not the same one your dynamic loader is loading at runtime. You can check to see what libraries it's linked against on Mac OS X using otool:

    otool -L /Users/christian/Documents/Development/onelogin.com/vendor/bundle/gems/pg-0.14.1/lib/pg_ext.bundle
    
  2. Log in to comment