Thread: Postgres misses readline

Postgres misses readline

From
bayerj@in.tum.de
Date:
Hello group,

I had postgres running fine for about a year on my local workstation
for testing purposes. After I did not use it some time and then needed
it again, running `$ postmaster` gives me the following error:

dyld: Library not loaded: /opt/local/lib/libreadline.5.0.dylib
  Referenced from: /opt/local/bin/postmaster
  Reason: image not found
Trace/BPT tra

I updated readline to 5.1. How can I tell postgres to use that instead?
I am using Postgresql 7.4 installed via DarwinPorts on Mac OS 10.4
Tiger. Googling and scanning the manual did not help me.


Thanks in advance,
-justin


Re: Postgres misses readline

From
"Uwe C. Schroeder"
Date:
create a symlink from /opt/local/lib/libreadline.5.1.dylib
to /opt/local/lib/libreadline.5.0.dylib (or just copy the file) and hope
nothing major changed in the API. If you get unresolved symbols after that
you have to either get a prebuilt prostgresql using the newer library, or you
can grab the sources and recompile postgres yourself.

Not sure if MacOS has something like ldconfig, if it does you may want to run
that after you linked/copied the file.

UC


On Thursday 16 November 2006 01:11, bayerj@in.tum.de wrote:
> Hello group,
>
> I had postgres running fine for about a year on my local workstation
> for testing purposes. After I did not use it some time and then needed
> it again, running `$ postmaster` gives me the following error:
>
> dyld: Library not loaded: /opt/local/lib/libreadline.5.0.dylib
>   Referenced from: /opt/local/bin/postmaster
>   Reason: image not found
> Trace/BPT tra
>
> I updated readline to 5.1. How can I tell postgres to use that instead?
> I am using Postgresql 7.4 installed via DarwinPorts on Mac OS 10.4
> Tiger. Googling and scanning the manual did not help me.
>
>
> Thanks in advance,
> -justin
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
>        subscribe-nomail command to majordomo@postgresql.org so that your
>        message can get through to the mailing list cleanly

--
Open Source Solutions 4U, LLC    1618 Kelly St
Phone:  +1 707 568 3056        Santa Rosa, CA 95401
Cell:   +1 650 302 2405        United States
Fax:    +1 707 568 6416