From: | Greg Smith <greg(at)2ndQuadrant(dot)com> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: initdb ignoring options due to bash environment on OS X |
Date: | 2013-02-27 02:24:58 |
Message-ID: | 512D6E7A.60206@2ndQuadrant.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 2/26/13 9:18 PM, Greg Smith wrote:
> $ otool -L `which initdb`
> /Users/gsmith/pgwork/inst/latest/bin/initdb:
> /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
> version 159.1.0)
Two last bits of trivia and I'll stop talking to myself. You can get
the full list of things this dynamic library then links to like this:
$ otool -lTv /usr/lib/libSystem.B.dylib | grep "(offset"
name /usr/lib/libSystem.B.dylib (offset 24)
name /usr/lib/system/libcache.dylib (offset 24)
name /usr/lib/system/libcommonCrypto.dylib (offset 24) ...
There's a bit more information about all the libraries squashed into
this one on OS X at
http://0xfe.blogspot.com/2006/03/qa-how-os-x-executes-applications.html
It is also worth nothing that otool is part of the developer tools for
OS X, not the base system. Features like DYLD_PRINT_LIBRARIES look like
they work on any system though.
--
Greg Smith 2ndQuadrant US greg(at)2ndQuadrant(dot)com Baltimore, MD
PostgreSQL Training, Services, and 24x7 Support www.2ndQuadrant.com
From | Date | Subject | |
---|---|---|---|
Next Message | Stephen Frost | 2013-02-27 03:06:44 | Re: Strange Windows problem, lock_timeout test request |
Previous Message | Greg Smith | 2013-02-27 02:18:34 | Re: initdb ignoring options due to bash environment on OS X |