Package: postgresql-7.4-plr
Version: 1:0.6.2-2
Severity: important

Hi,

/usr/share/doc/postgresql-[78].[41]-plr/README.plr suggests

   psql mydatabase < plr.sql

So I tried [sorry for the German locale - I tried to unsset environment
variables but psql keeps on spitting German messages, but the maintainer
is known to be German so this should be no big harm]:

$ psql test < /usr/share/postgresql/7.4/plr.sql
SET
FEHLER:  konnte Bibliothek »/usr/lib/postgresql/7.4/lib/plr.so« nicht laden: 
libR.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis 
nicht gefunden
FEHLER:  Funktion plr_call_handler() existiert nicht
FEHLER:  konnte Bibliothek »/usr/lib/postgresql/7.4/lib/plr.so« nicht laden: 
libR.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis 
nicht gefunden
FEHLER:  konnte Bibliothek »/usr/lib/postgresql/7.4/lib/plr.so« nicht laden: 
libR.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis 
nicht gefunden
FEHLER:  konnte Bibliothek »/usr/lib/postgresql/7.4/lib/plr.so« nicht laden: 
libR.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis 
nicht gefunden
FEHLER:  konnte Bibliothek »/usr/lib/postgresql/7.4/lib/plr.so« nicht laden: 
libR.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis 
nicht gefunden
FEHLER:  konnte Bibliothek »/usr/lib/postgresql/7.4/lib/plr.so« nicht laden: 
libR.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis 
nicht gefunden
CREATE TYPE
FEHLER:  konnte Bibliothek »/usr/lib/postgresql/7.4/lib/plr.so« nicht laden: 
libR.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis 
nicht gefunden
FEHLER:  Funktion plr_environ() existiert nicht
CREATE TYPE
FEHLER:  Sprache »plr« existiert nicht
FEHLER:  Sprache »plr« existiert nicht

The very same problem occures for the 8.1 version.

The reason is simple:

$ ldd /usr/lib/postgresql/8.1/lib/plr.so
        linux-gate.so.1 =>  (0xffffe000)
        libR.so => not found
        libc.so.6 => /lib/tls/libc.so.6 (0xb7ea2000)
        /lib/ld-linux.so.2 (0x80000000)

And a quick hack would be

$ sudo ln -s R/lib/libR.so /usr/lib

So it might even be that this bug is nit really related to postgresql-plr
but either to R or psql (which should perhaps extend the LD path).

Kind regards and thanks for maintaining this package

          Andreas.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (501, 'testing'), (50, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages postgresql-7.4-plr depends on:
ii  libc6                         2.3.5-8    GNU C Library: Shared libraries an
ii  postgresql-7.4                1:7.4.9-2  object-relational SQL database, ve
ii  r-base-core                   2.2.1-6    GNU R core of statistical computin

postgresql-7.4-plr recommends no packages.

-- no debconf information

Reply via email to