pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
is there any missing ??
4+ messages / 3 participants
[nested] [flat]

* is there any missing ??
@ 2006-02-02 03:55 slackman@unika.ac.id
  2006-02-02 13:07 ` Re: is there any missing ?? Dario Brignardello <dbrignar@gmail.com>
  0 siblings, 1 reply; 4+ messages in thread

From: slackman@unika.ac.id @ 2006-02-02 03:55 UTC (permalink / raw)
  To: pgsql-admin

# ./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



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: is there any missing ??
  2006-02-02 03:55 is there any missing ?? slackman@unika.ac.id
@ 2006-02-02 13:07 ` Dario Brignardello <dbrignar@gmail.com>
  2006-02-03 02:18   ` Re: is there any missing ?? slackman@unika.ac.id
  0 siblings, 1 reply; 4+ messages in thread

From: Dario Brignardello @ 2006-02-02 13:07 UTC (permalink / raw)
  To: slackman@unika.ac.id <slackman@unika.ac.id>; +Cc: pgsql-admin

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

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: is there any missing ??
  2006-02-02 03:55 is there any missing ?? slackman@unika.ac.id
  2006-02-02 13:07 ` Re: is there any missing ?? Dario Brignardello <dbrignar@gmail.com>
@ 2006-02-03 02:18   ` slackman@unika.ac.id
  2006-02-03 03:17     ` Re: is there any missing ?? Michael Fuhr <mike@fuhr.org>
  0 siblings, 1 reply; 4+ messages in thread

From: slackman@unika.ac.id @ 2006-02-03 02:18 UTC (permalink / raw)
  To: pgsql-admin; +Cc: dbrignar@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
 

 





^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: is there any missing ??
  2006-02-02 03:55 is there any missing ?? slackman@unika.ac.id
  2006-02-02 13:07 ` Re: is there any missing ?? Dario Brignardello <dbrignar@gmail.com>
  2006-02-03 02:18   ` Re: is there any missing ?? slackman@unika.ac.id
@ 2006-02-03 03:17     ` Michael Fuhr <mike@fuhr.org>
  0 siblings, 0 replies; 4+ messages in thread

From: Michael Fuhr @ 2006-02-03 03:17 UTC (permalink / raw)
  To: slackman@unika.ac.id; +Cc: pgsql-admin; dbrignar@gmail.com

On Fri, Feb 03, 2006 at 09:18:32AM +0700, slackman@unika.ac.id wrote:
> %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"

There have been previous reports of PL/Python problems on FreeBSD.
I'm not sure what the current status is; search the list archives
for past discussion.  I think one solution is to build a non-threaded
Python (WITHOUT_THREADS=yes if you're installing from the ports
collection), but that obviously has implications for other Python
applications.

-- 
Michael Fuhr



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2006-02-03 03:17 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-02-02 03:55 is there any missing ?? slackman@unika.ac.id
2006-02-02 13:07 ` Dario Brignardello <dbrignar@gmail.com>
2006-02-03 02:18   ` slackman@unika.ac.id
2006-02-03 03:17     ` Michael Fuhr <mike@fuhr.org>

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