Fresh install on Mac OS 10.5.4

Поиск
Список
Период
Сортировка
Искать

Fresh install on Mac OS 10.5.4

От:
Manoj 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

Re: Fresh install on Mac OS 10.5.4

От:
John DeSoi <desoi@pgedit.com>
Дата:

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.


Re: Fresh install on Mac OS 10.5.4

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
John DeSoi  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

Re: Fresh install on Mac OS 10.5.4

От:
Manoj Patwardhan <manoj@expersis.com>
Дата:
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  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

FAQ