So you should try a vanilla cabal build process, without cabal-install, and try cranking up the verbosity a notch or two. Please turn JavaScript back on and reload this page. So, I just typed:. As for a proper fix, I'm still pretty much in the dark. Running config and build manually I get this, which is really the original error message:. But that's inside the Xcode app, so where will it be on a Mac that doesn't have Xcode or Postgres installed but does have my app installed? I found out that I could also add that to extra-lib-dirs in my stack. The data structures that these callbacks are passed are quite large, so if you want to examine them I recommend using groom to pretty print them. Thank you! The workaround I've found that resolves this problem for me this may not be universal is to create symbolic links to libpq.
My application builds successfully in Xcode and runs without problems in my mac (running snow leopard ) because I have properly. I'm trying to install postgresql-libpq on Mac OS X I get: ijmorlan@ $ cabal install postgresql-libpq Resolving dependencies [1 of 1]. otool -L `which psql` /Applications/: @ executable_path/./lib/libpqdylib (compatibility version
This worked for me!
Thanks for the hints.

Ok, so hsc2hs takes a. GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together. Already have an account? I'm hoping that a cabal build afterwards wouldn't rebuild that executable, but I don't know.
Hung Dam Hung Dam 99 1 1 silver badge 3 3 bronze badges.
macos OS X PHP — dyld Library not loaded /usr/lib/libpqdylib Ask Different
![]() FINAL FANTASY V MAIN THEME STAR |
I am not sure how relevant this will be to the Reason: image not found issue for a different dylibbut I thought there was a chance it might help someone, and so it seemed worth posting here. I had a Postgresql installed before, and then I installed the PostgreSQL app, the same error occured when I uninstalled the previous installation.
July and how people are learning and teaching code. C libpq passes B and C but does not pass A. I am using yosemite, postgres. |
OS X Sierra, PostgreSQL and Psycopg2 First of all you have to disable de System Integrity Protection in your mac, this because you have to create some symlink sudo ln -s /Library/PostgreSQL//lib/libpqdylib /usr/lib. Symlink libpq to libpq sudo ln -s /usr/lib/libpqdylib /usr/lib/libpqdylib.
python Problems using psycopg2 on Mac OS (Yosemite) Stack Overflow
Make a backup first.
Hopefully this helps until a real solution is found. On my build machine, I have a version of Postgres server installed so that the libpq headers. Dismiss Join GitHub today GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Setup a private space for you and your coworkers to ask questions and share information. You signed in with another tab or window.
Thanks for your helpful answer!

Benja Garrido Benja Garrido 1 1 gold badge 4 4 silver badges 17 17 bronze badges.
to work around the OS X El Capitan System Integrity Protection (SIP). /usr/lib/libpqdylib: mach-o, but wrong architecture in Unknown on line 0.
Unable to load dynamic library libpqdylib
IP: - iMac:lib pnosko$ cd /Volumes/AMPPS/AMPPS/extra/lib. But when I am trying to run my application in an other mac (that My application bundle includes libpqdylib into the Frameworks folder.
But open source tools are….
Video: Mac libpq 5 dylib osx Install Postgres 9.5 on Mac
Without that, we end up in the unenviable place of having to either:. So does that mean that libpq. Running config and build manually I get this, which is really the original error message:.
The correct shared libraries that libpq. So, I just typed:. Anyway, the installer was finding libiconv.
For those of you on El Capitan who can't use KungFuLucky7's answer - I used the following to fix the issue Adjust paths to match yours where required.
Skip to content. I am not sure how relevant this will be to the Reason: image not found issue for a different dylibbut I thought there was a chance it might help someone, and so it seemed worth posting here.
This is one of those confusing cases where I can't seem to find anybody else asking the same question, but I don't see that I'm doing anything special that would give me a different experience from most other people.
Show 5 replies.
I found out that I could also add that to extra-lib-dirs in my stack.