Skip site navigation (1) Skip section navigation (2)

Re: 9.2 won't load C-language function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Craig James <cjames(at)emolecules(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: 9.2 won't load C-language function
Date: 2012-10-10 21:11:07
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
Craig James <cjames(at)emolecules(dot)com> writes:
> ERROR:  could not load library "/usr/local/pgsql/lib/":
> cannot open shared object file: No such file or directory

> But does exist:

> # ls -l /usr/local/pgsql/lib/
> -rwxr-xr-x 1 root root 18250709 2012-10-09 18:05
> /usr/local/pgsql/lib/*

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

In response to

pgsql-admin by date

Next:From: Rosser SchwarzDate: 2012-10-10 21:15:15
Subject: Pg 8.3.x on RHEL 6.3?
Previous:From: Craig JamesDate: 2012-10-10 18:22:17
Subject: 9.2 won't load C-language function

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group