Re: OS X library path issues for libpq (ver 8.3 - Mailing list pgsql-general

From Jerry LeVan
Subject Re: OS X library path issues for libpq (ver 8.3
Date
Msg-id 76EE02EE-26DC-439E-BB7A-425CB4AFC89C@eku.edu
Whole thread Raw
List pgsql-general
Have you tried putting your environmental variables
in:
    .MacOSX

I have some apps that need access to some PG enviromental
variables and I had to put them in a plist in the
directory .MacOSX

e.g.

[mbp:~/.MacOSX]$ ls -al ~/.MacOSX
total 8
drwxr-xr-x    3 jerry  jerry   102 Jun 25  2007 .
drwxr-xr-x+ 113 jerry  jerry  3842 Sep  7 12:45 ..
-rw-r--r--    1 jerry  jerry   334 Jun 25  2007 environment.plist

and

[mbp:~/.MacOSX]$ cat environment.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd
">
<plist version="1.0">
<dict>
    <key>PGDATABASE</key>
    <string>levan</string>
    <key>PGHOST</key>
    <string>localhost</string>
    <key>PGUSER</key>
    <string>levan</string>
</dict>
</plist>

The plist contents act like regular unix style environmental variables
for apps started from the Finder.

Perhaps placing the path informationfor the dynamic loader in the
plist would
solve your problems.

Jerry


pgsql-general by date:

Previous
From: btober@ct.metrocast.net
Date:
Subject: pg_dumpall problem when roles have default schemas
Next
From: "Ricardo Antonio Yepez Jimenez"
Date:
Subject: You need to rebuild PostgreSQL using --with-libxml.