pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: slackman@unika.ac.id
To: pgsql-admin@postgresql.org
Cc: dbrignar@gmail.com
Subject: Re: is there any missing ??
Date: Fri, 03 Feb 2006 09:18:32 +0700
Message-ID: <20060203021832.16478.qmail@mail.unika.ac.id> (raw)
In-Reply-To: <45dd8dbe0602020507u5bd55f0ft2aadf415dadb46f6@mail.gmail.com>
References: <20060202035513.10304.qmail@mail.unika.ac.id>
	<45dd8dbe0602020507u5bd55f0ft2aadf415dadb46f6@mail.gmail.com>

%bin/createlang plpythonu template1;
createlang: language installation failed: ERROR:  could not load library 
"/usr/local/pgsql/lib/plpython.so": dlopen 
(/usr/local/pgsql/lib/plpython.so) failed: /usr/local/pgsql/lib/plpython.so: 
Undefined symbol "pthread_create"
%
in my w2k box i use this function,
CREATE FUNCTION plpython_call_handler() RETURNS language_handler
   AS '$libdir/plpython'
   LANGUAGE C;
CREATE LANGUAGE python
   HANDLER plpython_call_handler;
is it okay?? 

 


Dario Brignardello writes: 

> Well, according to the docs at
> http://www.postgresql.org/docs/8.1/interactive/plpython.html
> the correct name would be "plpythonu".
> As a matter of facts, you can do a
> 'select tmplname from pg_pltemplate;'
> to check wich languages are available. 
> 
> Hope it helps.
> Best regards
> Dario 
> 
>  
> 
> 
> On 2/2/06, slackman@unika.ac.id <slackman@unika.ac.id> wrote:
>>
>> # ./configure --prefix=/usr/local/pgsql --with-python
>> # make
>> # make install
>> # adduser postgres
>> # mkdir /usr/local/pgsql/data
>> # chown postgres /usr/local/pgsql/data
>> # su postgres
>> % /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
>> % /usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data -l
>> /usr/local/pgsql/pg_start.log start
>> %/usr/local/pgsql/bin/createlang plpython template1
>> createlang: language installation failed: ERROR:  unsupported language
>> "plpython"
>> HINT:  The supported languages are listed in the pg_pltemplate system
>> catalog.
>> %
>> i there any missing ???
>> i have configured python lib
>> my box is using freebsd 5.0, python 2.4.2, postgresql-8.1.2
>> thank you all for your kinness 
>>
>> ---------------------------(end of broadcast)---------------------------
>> TIP 4: Have you searched our list archives? 
>>
>>                http://archives.postgresql.org 
>>
>  
> 
> 
> --
> Atte: Dario Brignardello
 

 





view thread (4+ messages)  latest in thread

Message-ID: <20060203021832.16478.qmail@mail.unika.ac.id>
Permalink:  ../20060203021832.16478.qmail@mail.unika.ac.id/
Also on:    postgresql.org/message-id/20060203021832.16478.qmail@mail.unika.ac.id

 · 

reply

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-admin@postgresql.org
  Cc: slackman@unika.ac.id, dbrignar@gmail.com
  Subject: Re: is there any missing ??
  In-Reply-To: <20060203021832.16478.qmail@mail.unika.ac.id>
  References: <20060202035513.10304.qmail@mail.unika.ac.id> <45dd8dbe0602020507u5bd55f0ft2aadf415dadb46f6@mail.gmail.com> <20060203021832.16478.qmail@mail.unika.ac.id>

* 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