Thread: Fresh install on Mac OS 10.5.4
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
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.
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
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: > 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