Fresh install on Mac OS 10.5.4

Started by Manoj Patwardhanalmost 18 years ago4 messagesgeneral
Jump to latest
#1Manoj Patwardhan
manoj@expersis.com

I downloaded version 8.3.3 and after a successful build from source
and an install, I tried to create a database cluster. I got the
following error:

bash-3.2$ initdb -D /usr/local/pgsql/data

dyld: Library not loaded: /usr/local/pgsql/lib/libpq.4.dylib
Referenced from: /usr/local/bin/initdb
Reason: image not found
Trace/BPT trap

Any ideas? This is on Mac OS 10.5.4. What I see in /usr/local/pgsql/
lib is libpq.5.dylib and not libpq.4.dylib.

Thanks!
Manoj Patwardhan

#2John DeSoi
desoi@pgedit.com
In reply to: Manoj Patwardhan (#1)
Re: Fresh install on Mac OS 10.5.4

On Aug 2, 2008, at 7:13 PM, Manoj Patwardhan wrote:

bash-3.2$ initdb -D /usr/local/pgsql/data

dyld: Library not loaded: /usr/local/pgsql/lib/libpq.4.dylib
Referenced from: /usr/local/bin/initdb
Reason: image not found
Trace/BPT trap

Any ideas? This is on Mac OS 10.5.4. What I see in /usr/local/pgsql/
lib is libpq.5.dylib and not libpq.4.dylib.

Could be a path problem. Try

which initdb

initdb --version

to make sure you are running the version of initdb you think you are.

#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: John DeSoi (#2)
Re: Fresh install on Mac OS 10.5.4

John DeSoi <desoi@pgedit.com> writes:

On Aug 2, 2008, at 7:13 PM, Manoj Patwardhan wrote:

bash-3.2$ initdb -D /usr/local/pgsql/data
dyld: Library not loaded: /usr/local/pgsql/lib/libpq.4.dylib
Referenced from: /usr/local/bin/initdb

Could be a path problem. Try

Yeah ... the reference to libpq major version 4 suggests *very*
strongly that this copy of initdb is from PG version 8.0 or 8.1.

regards, tom lane

#4Manoj Patwardhan
manoj@expersis.com
In reply to: Tom Lane (#3)
Re: Fresh install on Mac OS 10.5.4

Thanks guys!

Yes, 8.3.3 binaries got installed in /usr/local/pgsql/bin and so the
7.3 version that I had previously didn't get overwritten. Binaries for
7.3 were in /usr/local/bin

Works now.

Regards,
Manoj Patwardhan

On Aug 3, 2008, at 12:17 AM, Tom Lane wrote:

Show quoted text

John DeSoi <desoi@pgedit.com> writes:

On Aug 2, 2008, at 7:13 PM, Manoj Patwardhan wrote:

bash-3.2$ initdb -D /usr/local/pgsql/data
dyld: Library not loaded: /usr/local/pgsql/lib/libpq.4.dylib
Referenced from: /usr/local/bin/initdb

Could be a path problem. Try

Yeah ... the reference to libpq major version 4 suggests *very*
strongly that this copy of initdb is from PG version 8.0 or 8.1.

regards, tom lane