-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't install on Mac OS X: libpq.5.dylib not found #9
Comments
Thanks for the report; unfortunately I personally won't be able to help you much here. But if you do find a solution, please share, and I would be eager for any patches as well. We really need to put together a guide for compiling postgresql-libpq on MacOS and Windows. |
On Thu, 7 Mar 2013, Leon P Smith wrote:
Ok, thanks. I took a closer look at the postgresql-libpq package, in So now I'm going to try to figure out what "cabal install" is doing and |
for the purposes of building a single package, cabal-install mostly just invokes the Cabal commands in a particular sequence (with some further settings in your So you should try a vanilla cabal build process, without If worse comes to worse, a handy trick I've found when trying to understand cabal is to put print statements in the callback hooks in That's pretty generic advice, but I hope it helps! |
On Thu, 7 Mar 2013, Leon P Smith wrote:
Thanks for the hints. Yes, I found the "verbose" flags. I dug around a If I can figure out how to tell cabal to arrange for the intermediate I created a ticket on the GHC Trac site because it seems like hsc2hs http://hackage.haskell.org/trac/ghc/ticket/7749 Of course, I can't really say, because I don't know enough about hsc2hs or |
I just read the ticket; my one comment is that I don't know how many users of I do know there is at least two people who have tried to use |
Any news on this? Got same issue here, running OS X 10.9.2:
|
Well, again I won't be able to help much, although I would recommend trying this with the verbosity turned up, as well as trying to invoke @ijmorlan, did you get this working, and if so, how? |
Also, I am curious, could you post the output of the And this may not help, but you might look at this OpenBSD thread, which suggests we should modify |
The output of pg_config is copied below:
|
Running
|
Ok, so
I'm a little unclear on all the details here, but RPATH is a hard-wired dylib search path, embedded in the binary. I'm hoping that a Alternatively, you might be able to fix this by adjusting your That still leaves the question of what happens to executables that use |
I've experienced similar problems on OS X 10.8.5. The workaround I've found that resolves this problem for me (this may not be universal) is to create symbolic links to By setting Notably, the workaround does not work if
This error isn't surprising, because If Hopefully this helps until a real solution is found. |
Hello all, I had a somewhat similar issue trying to install this library using
Because I had installed Postgresql 9.4 using the one-click installer on OSX, all relevant Postgresql files were in Anyway, the installer was finding
The one I needed was in
Recent restrictions to OSX make it impossible to just go into
Finally, I used
I am not sure how relevant this will be to the |
Thank you @pellagic-puffbomb —this saved my day. 👍 |
Hi @pellagic-puffbomb. Thanks for your helpful answer! For my own understanding, could you please explain why did you need to run Thanks |
@kevinmeredith stack didn't seem to be able to find the |
I'm trying to install postgresql-libpq on Mac OS X 10.6.8. I get:
Now, my libpq is not in /usr/lib, so maybe that's an issue. But:
So I figure that the postgresql-libpq configure stuff should be able to find it.
But maybe not, so:
I tried symlinking /Library/PostgreSQL/9.2/lib/libpq.5.dylib into /usr/lib, but then it complained about the version of libiconv. Sure enough, the version in /usr/lib is the slightly older version it can't use, while the one in /Library/PostgreSQL/9.2/lib is the needed version. I don't really want to go randomly upgrading stuff in /usr/lib.
Incidentally, my PostgreSQL installation was made by using the one click installer available from http://www.postgresql.org/download/macosx/.
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. Any hints would be much appreciated.
The text was updated successfully, but these errors were encountered: