Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TM3Yd-000726-Fz for pgsql-admin@postgresql.org; Wed, 10 Oct 2012 21:11:11 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TM3Yb-0004Lk-I3 for pgsql-admin@postgresql.org; Wed, 10 Oct 2012 21:11:10 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id q9ALB705010508; Wed, 10 Oct 2012 17:11:07 -0400 (EDT) From: Tom Lane To: Craig James cc: pgsql-admin@postgresql.org Subject: Re: 9.2 won't load C-language function In-reply-to: References: Comments: In-reply-to Craig James message dated "Wed, 10 Oct 2012 11:22:17 -0700" Date: Wed, 10 Oct 2012 17:11:07 -0400 Message-ID: <10507.1349903467@sss.pgh.pa.us> X-Pg-Spam-Score: -4.0 (----) X-Archive-Number: 201210/29 X-Sequence-Number: 40145 Craig James writes: > ERROR: could not load library "/usr/local/pgsql/lib/libchmoogle.so": > libopenbabel.so.4: cannot open shared object file: No such file or directory > But libopenbabel.so.4 does exist: > # ls -l /usr/local/pgsql/lib/libopenbabel.so.4 > -rwxr-xr-x 1 root root 18250709 2012-10-09 18:05 > /usr/local/pgsql/lib/libopenbabel.so.4* It may exist, but is it in the dynamic linker's search path? You didn't say what platform this is, but on Linux you normally have to negotiate with ldconfig, or else set rpath in the referencing shlib, if you want to use shlibs that are in nonstandard directories. > What changed in how libraries are loaded between 8.4 and 9.2? Nothing, AFAIR. But you may have dropped an rpath spec when rebuilding your library, or forgotten about a ldconfig adjustment you made on the old machine. regards, tom lane