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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Problem building both Python 2 and 3 into Postgres 9.4.4?
Дата
Msg-id 32767.1437342844@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Problem building both Python 2 and 3 into Postgres 9.4.4?  (pbj@cmicdo.com)
Ответы Re: Problem building both Python 2 and 3 into Postgres 9.4.4?  (pbj@cmicdo.com)
Список pgsql-general
pbj@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 --with-openssl --with-libxml --with-libxslt --with-python PYTHON=/usr/bin/python3
> make
> make install

You need to configure and make one way, then install, then make distclean,
reconfigure and remake the other way, then make install in only the
src/pl/plpython directory.  The recipe as you have it will end up with
only one installed copy of plpython, not two, and I'm not real sure that
that copy will be correctly built for either case.

            regards, tom lane


В списке pgsql-general по дате отправления:

Предыдущее
От: Spiros Ioannou
Дата:
Сообщение: Re: Lots of stuck queries after upgrade to 9.4
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Lots of stuck queries after upgrade to 9.4