Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YZoMD-0001VO-59 for pgsql-admin@arkaria.postgresql.org; Sun, 22 Mar 2015 22:28:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YZoMC-00078F-Cw for pgsql-admin@arkaria.postgresql.org; Sun, 22 Mar 2015 22:28:32 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YZoMA-00072c-5N for pgsql-admin@postgresql.org; Sun, 22 Mar 2015 22:28:30 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YZoM6-0001l1-O2 for pgsql-admin@postgresql.org; Sun, 22 Mar 2015 22:28:28 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t2MMSOjY003185; Sun, 22 Mar 2015 18:28:24 -0400 From: Tom Lane To: Scott Ribe cc: Postgres Maillist Subject: Re: unix socket location confusion In-reply-to: <0A21BC93-7B9C-476E-AAF4-0FF71708E87F@elevated-dev.com> References: <0A21BC93-7B9C-476E-AAF4-0FF71708E87F@elevated-dev.com> Comments: In-reply-to Scott Ribe message dated "Sun, 22 Mar 2015 14:33:24 -0600" Date: Sun, 22 Mar 2015 18:28:24 -0400 Message-ID: <3184.1427063304@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Scott Ribe writes: > - on OS X 10.10.2 > - downloaded 9.3.6 sources > - ./configure --with-openssl --prefix=/my/specific/location/pg-9.3 > - make & install > - cd /my/specific/location/ > - pg-9.3/bin/postmaster -D... > - socket is created in /tmp, as expected > - pg-9.3/bin/psql mydb > - gives error about not being able to connect to /var/pgsql_socket/.s.PGSQL.5432 > - ??? OS X ships with a libpq that's configured that way: $ ls -l /usr/lib/libpq* -rwxr-xr-x 1 root wheel 155696 Sep 9 2014 /usr/lib/libpq.5.5.dylib lrwxr-xr-x 1 root wheel 15 Oct 18 13:00 /usr/lib/libpq.5.dylib -> libpq.5.5.dylib lrwxr-xr-x 1 root wheel 15 Oct 18 13:00 /usr/lib/libpq.dylib -> libpq.5.5.dylib $ strings /usr/lib/libpq.5.5.dylib | grep var /var/pgsql_socket $ strings /usr/lib/libpq.5.5.dylib | grep tmp $ Evidently your psql is linking to this libpq and not the one you built. You can fix that with suitable use of rpath; although I'm not sure why an out-of-the-box build doesn't do that for you. It works fine for me: $ otool -L ~/testversion/bin/psql /Users/tgl/testversion/bin/psql: /Users/tgl/testversion/lib/libpq.5.dylib (compatibility version 5.0.0, current version 5.8.0) /usr/lib/libedit.3.dylib (compatibility version 2.0.0, current version 3.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0) and I don't believe I'm using any nondefault switches to get that. regards, tom lane -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin