dbTalk Databases Forums  

plPython with PG 8.1 and FreeBSD

comp.databases.postgresql comp.databases.postgresql


Discuss plPython with PG 8.1 and FreeBSD in the comp.databases.postgresql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Philipp Kraus
 
Posts: n/a

Default plPython with PG 8.1 and FreeBSD - 09-05-2007 , 07:45 AM






Hello,

we are trying to install under FreeBSD (6.2.p7) Postgresql 8.1, Python
2.4 and plPython. We get by "create language plpythonu" an error: could
not load library "/usr/local/lib/postgresql/plpython.so": dlopen
(/usr/local/lib/postgresql/plpython.so) failed:
/usr/local/lib/python2.4/config/libpython2.4.so: Undefined symbol
"pthread_attr_destroy"

Which config flags must be set before "make install" or which other
options must be set?
Must we compile Python / Postgres thread safe or unsafe?

Can u help us, we have many trouble and not enough time too

Gread Thanks

Phil


Reply With Quote
  #2  
Old   
Laurenz Albe
 
Posts: n/a

Default Re: plPython with PG 8.1 and FreeBSD - 09-05-2007 , 11:17 AM






Philipp Kraus <philipp.kraus (AT) flashpixx (DOT) de> wrote:
Quote:
we are trying to install under FreeBSD (6.2.p7) Postgresql 8.1, Python
2.4 and plPython. We get by "create language plpythonu" an error: could
not load library "/usr/local/lib/postgresql/plpython.so": dlopen
(/usr/local/lib/postgresql/plpython.so) failed:
/usr/local/lib/python2.4/config/libpython2.4.so: Undefined symbol
"pthread_attr_destroy"

Which config flags must be set before "make install" or which other
options must be set?
Must we compile Python / Postgres thread safe or unsafe?
This is a known problem - PostgreSQL won't build against a Python
that is built with threading enabled (--with-thread).

Newer Versions of PostgreSQL will give you an error during
configuration.

You will have to use a different Python.

You can tell the PostgreSQL ./configure which Python it should
use by setting the PYTHON environment variable.

Yours,
Laurenz Albe


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.