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

Re: Not quite there yet

From: Mladen Gogala <mladen(dot)gogala(at)vmsinfo(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Not quite there yet
Date: 2010-09-27 02:13:21
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
Tom Lane wrote:
> Mladen Gogala <mladen(dot)gogala(at)vmsinfo(dot)com> writes:
>> -bash-3.2$ less /opt/PostgreSQL/9.0/data/loadable_libraries.txt
>> Failed to load library: $libdir/plperl
>> ERROR:  could not load library "/opt/PostgreSQL/9.0/lib/postgresql/
>>": cannot open shared object file: No such file or
>> directory
> Apparently you don't have the same version of Perl as that installer
> was built against, or you do but there's some rpath-ish issue preventing
> from finding it.  On a Linux-like system, you might learn
> something from
> ldd /opt/PostgreSQL/9.0/lib/postgresql/
> 			regards, tom lane
Here is the output of ldd, the cannot be resolved:
[root(at)medo tmp]# ldd /opt/PostgreSQL/9.0/lib/postgresql/ =>  (0x003cb000) => not found => /lib/ (0x00aa2000) => /lib/ (0x003d7000) => /lib/ (0x00ce5000) => /lib/ (0x00110000) => /lib/ (0x001c5000) => /lib/ (0x005b2000) => /lib/ (0x001e7000)
        /lib/ (0x00a1c000)

If I try the same thing with the plperl library from 8.4.4, it gives me 
-bash-3.2$ ldd /usr/lib/pgsql/ =>  (0x00d4d000) => 
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/ (0x00110000) => /lib/ (0x005ee000) => /lib/ (0x00ed4000) => /lib/ (0x00fcb000) => /lib/ (0x00639000) => /lib/ (0x004f6000) => /lib/ (0x00dc7000) => /lib/ (0x00c82000) => /lib/ (0x00242000)
        /lib/ (0x00a1c000)
I tried with setting LD_LIBRARY_PATH to 
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE, it didn't help much. 
Now, there is a problem with unresolved symbols:
-bash-3.2$ less /opt/PostgreSQL/9.0/data/loadable_libraries.txt
Failed to load library: $libdir/plperl
ERROR:  could not load library 
/opt/PostgreSQL/9.0/lib/postgresql/ undefined symbol: 

Apparently, you're right, this is a version problem. This is a plain 
vanilla CentOS 5.5 system. I can't just install the RPM packages because 
my  old database will be destroyed and I don't want that. Do you know 
which system was this installer built on and which version of Perl does 
it expect? Problem with the Red Hat system and its derivatives, like 
CentOS, is that Postgres is installed on var/lib/pgsql, without regard 
to the version string. That means that I can't just install the new RPM 
packages because my /var/lib/pgsql/data would get overwritten and there 
would be no old binaries. Building it from the source looks like the 
only remaining option. I will try relinking just plperl, this binary 
installer  looks like it contains the full development package. 
Unforunately,  PgFoundry only contains sources for PgSQL 7 and 8, no 
trace of the code for the version 9. That leads me to the conclusion 
that I should wait a bit before upgrading any of my existing 8.4.4 
databases to 9.0. Here is my OS version:
-bash-3.2$ uname -a
Linux medo 2.6.18-194.11.4.el5PAE #1 SMP Tue Sep 21 05:48:23 EDT 2010 
i686 athlon i386 GNU/Linux
-bash-3.2$ cat /etc/redhat-release
CentOS release 5.5 (Final)
I used this system to test at home because the vast majority of my 
Postgres databases in the office are running on Red Hat 5.5 systems.

Mladen Gogala 
Sr. Oracle DBA
1500 Broadway
New York, NY 10036
(212) 329-5251 

In response to


pgsql-novice by date

Next:From: Tom LaneDate: 2010-09-27 02:19:06
Subject: Re: Not quite there yet
Previous:From: Tom LaneDate: 2010-09-27 00:47:37
Subject: Re: Not quite there yet

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