From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | Chris <rfusca(at)gmail(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: testing plpython3u on 9.0beta2 |
Date: | 2010-06-23 11:17:12 |
Message-ID: | AANLkTilqFvOMk-L0i_sI5R0R0d4dT9v-O5QwqdXKwP7q@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, Jun 22, 2010 at 10:41 PM, Chris <rfusca(at)gmail(dot)com> wrote:
> I received two errors (described below) in installing 9.0beta2 on Kubuntu
> 10.04 , RhodiumToad on IRC recommended I post them here.
> I did not have a 2.x or 3.x python dev installed, but I was really only
> interested in python3 via plython3u.
> So...
> sudo apt-get install python3-all-dev
> Configure works fine...
> "./configure --with-pgport=5433 --with-python --with-ossp-uuid --with-libxml
> --with-libxslt --with-perl"
> "make" fails while trying to build plpython, Cannot find python.h i
> believe....(I sadly did not save the text of the error and have since
> continued onward. But it was not finding a file while building plpython. I
> believe I would have to uninstall a few things to reproduce.)
> So I tried installing the 2.x dev. After running "sudo apt-get install
> python-all-dev" then "make;make check;sudo make install", it all worke fine.
> However, when issuing a "createlang plpython3u template1", I get
> "createlang: language installation failed: ERROR: could not access file
> "$libdir/plpython3": No such file or directory". But if I "createlang
> plpython2u template1" first, then it will allow "createlang plpython3u
> template1".
> Am I doing something incorrect, or...?
> (As an aside, functions created with LANGUAGE plpython3u appear to work.)
I can reproduce this, here. The problem seems to be that plpython
only build either plpython2.so or plython3.so, but both languages
expect a call handler called plython_call_handler. So once we load
the shared library for one language, the other language just grabs the
same call handler.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2010-06-23 12:19:40 | Re: Cannot cancel the change of a tablespace |
Previous Message | Greg Stark | 2010-06-23 10:20:23 | Re: Parallel pg_restore versus old dump files |