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

Re: Problem of LD_LIBRARY_PATH

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: Rural Hunter <ruralhunter(at)gmail(dot)com>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-admin(at)postgresql(dot)org
Subject: Re: Problem of LD_LIBRARY_PATH
Date: 2011-09-19 02:36:13
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
On Sun, Sep 18, 2011 at 8:00 PM, Rural Hunter <ruralhunter(at)gmail(dot)com> wrote:
> Well, I installed pg by the official one-click graphic
> installer( But ahh, when
> I tried to get an error message if I don't set LD_LIBRARY_PATH, I found it's
> now working without this variable. The variable was added into my env for
> 9.1rc. If I don't add it I got this error:
> postgres(at)backup:~$ createuser
> createuser: error while loading shared libraries: cannot
> open shared object file: No such file or directory
> I searched net and found the solution to add LD_LIBRARY_PATH into env. but
> looks it's not needed any more in the final release. So my problem is
> resolved. Thank you all.

for future reference the other way to do it is to put an entry into
/etc/ and run sudo ldconfig to set it for the whole system.
For ubuntu I use packages from the PGDG repo or I build from source.
Having had to apply two patches to production in the past 3 years, I
now just build from source because it's so much easier and faster to
apply patches that way than to either way for the next release or
build my own.

In response to

pgsql-admin by date

Next:From: Karuna KarpeDate: 2011-09-19 06:46:41
Subject: slony replication
Previous:From: Rural HunterDate: 2011-09-19 02:00:50
Subject: Re: Problem of LD_LIBRARY_PATH

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