Re: [GENERAL] Problem building both Python 2 and 3 into Postgres 9.4.4?

2015-07-20 Thread pbj
wrote: Subject: Re: [GENERAL] Problem building both Python 2 and 3 into Postgres 9.4.4? To: p...@cmicdo.com Cc: pgsql-general@postgresql.org Date: Sunday, July 19, 2015, 4:54 PM p...@cmicdo.com writes: Has anyone successfully built Python 2 and 3 into the same installation of Postgres

[GENERAL] Problem building both Python 2 and 3 into Postgres 9.4.4?

2015-07-19 Thread pbj
Has anyone successfully built Python 2 and 3 into the same installation of Postgres 9.4.4? I tried it today on Ubuntu 10.04, Python 2.6.5, Python 3.1.2 and got and error about undefined symbol: PyString_AsString. The Python docs say that PyString_* have been renamed to PyBytes_* and I find

Re: [GENERAL] Problem building both Python 2 and 3 into Postgres 9.4.4?

2015-07-19 Thread Tom Lane
p...@cmicdo.com writes: Has anyone successfully built Python 2 and 3 into the same installation of Postgres 9.4.4? I do not think you can do it like this: make distclean ./configure --with-openssl --with-libxml --with-libxslt --with-python PYTHON=/usr/bin/python make ./configure