Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 233DA63282E for ; Thu, 15 Jul 2010 17:40:08 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 81243-10 for ; Thu, 15 Jul 2010 20:40:00 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pv0-f174.google.com (mail-pv0-f174.google.com [74.125.83.174]) by mail.postgresql.org (Postfix) with ESMTP id A5E7E6328B9 for ; Thu, 15 Jul 2010 17:39:59 -0300 (ADT) Received: by pvc7 with SMTP id 7so454121pvc.19 for ; Thu, 15 Jul 2010 13:39:58 -0700 (PDT) Received: by 10.114.124.1 with SMTP id w1mr6197wac.96.1279226380893; Thu, 15 Jul 2010 13:39:40 -0700 (PDT) Received: from Craig-Jamess-MacBook-Pro.local (wsip-70-167-124-126.sd.sd.cox.net [70.167.124.126]) by mx.google.com with ESMTPS id k23sm9656239waf.17.2010.07.15.13.39.38 (version=SSLv3 cipher=RC4-MD5); Thu, 15 Jul 2010 13:39:39 -0700 (PDT) Message-ID: <4C3F7209.4060908@emolecules.com> Date: Thu, 15 Jul 2010 13:39:37 -0700 From: Craig James User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5 MIME-Version: 1.0 To: Tom Lane CC: pgsql-admin@postgresql.org Subject: Re: 8.3 to 8.4 - Can't load dynamic shared library References: <4C3F583C.50208@emolecules.com> <10698.1279223535@sss.pgh.pa.us> In-Reply-To: <10698.1279223535@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201007/93 X-Sequence-Number: 35112 On 7/15/10 12:52 PM, Tom Lane wrote: > Craig James writes: >> On the Postgres 8.3 system, I simply put libopenbabel.so into the /usr/local/pgsql/lib directory, and everything worked well. On 8.4, I can't seem to get it to load libopenbabel.so. Other programs that use this library have no trouble finding it. > >> What (if anything) has changed from 8.3 to 8.4 regarding how it finds > and links dynamic libraries? > > Nothing. I think this more likely is a consequence of your platform > switch from Fedora to Ubuntu. I'm not sure how the dynamic linker's > search path is defined on Ubuntu, but it might be different. Or > possibly it's the same but you forgot about making an /etc/ld.so.conf.d > entry on the new machine, or didn't run ldconfig afterwards. We don't use /etc/ld.so.conf.d, and never have. On 8.3.10 and earlier, Postgres would ONLY load this library if we put it in /usr/local/pgsql/lib, so I figured it was a security restriction, that Postgres altered the LD_LIBRARY_PATH to ensure that only legitimate, admin-approved libraries could be loaded. The Postgres documentation sort of hints at this but doesn't give details. Is this true, that Postgres restricts the dynamic linker in some way? And if so, is there documentation? Craig