From: turing2000 <turing2000@mail.ru>
To: pgsql-sql@postgresql.org
Date: Thu, 16 Nov 2000 14:05:51 +0300
Message-ID: <E13wMrT-000J42-00@f9.mail.ru> (raw)
Please, help me.
I configure/compile perl with option ( other options stay default ):
./Configure -Dprefix=/usr/local/perl -Duseshrplib
make
make install
I add string '/usr/local/perl/lib/5.6.0/i686-linux/CORE'
in file /etc/ld.so.conf and call program 'ldconfig'.
Environment:
LD_LIBRARY_PATH=/usr/local/pgsql/lib:/usr/local/perl/lib/5.6.0/i686-linux/CORE
All is OK for perl. But in psql:
\c db_name
create function perl_hnd() returns opaque as'
/usr/local/perl/lib/5.6.0/i686-linux/CORE/libperl.so' language 'C';
create trusted procedural language 'perl'
handler perl_hnd lancompiler 'perlcompiler';
create function f( int4, int4 ) returns int4 as'
return $_[0] + $_[1]; 'language 'perl';
db_name=> select f(2,2);
ERROR: Can't find function perl_hnd in file
/usr/local/perl/lib/5.6.0/i686-linux/CORE/libperl.so
Please, help me!
turing2000
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: turing2000@mail.ru
Subject: Re:
In-Reply-To: <E13wMrT-000J42-00@f9.mail.ru>
References: <E13wMrT-000J42-00@f9.mail.ru>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox