Re: is there any missing ??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



%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@xxxxxxxxxxx <slackman@xxxxxxxxxxx> 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







[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux