gpdb
gpdb copied to clipboard
compile plpython3 in an exist greenplum6, error
Bug Report
I download the 6.12 source code in github, and then
sudo PYTHON=/opt/python3.11/bin/python3.11 make -j8 && make install
but erro:
Makefile:5: ../../../src/Makefile.global: No such file or directory
make: *** No rule to make target `../../../src/Makefile.global'. Stop.
Greenplum version or build
6.12.1
OS version and uname -a
centos7
You need to run ./configure
under the root directory of the source code, otherwise the Makefile.global
won't exist.
Probably you'll need to use the following command to configure gpdb.
PYTHON=/path/to/your/python3.11 ./configure --prefix=<install_location> ...
make -j8 && make install
then,
PYTHON=/usr/bin/python3.11 ./configure --prefix=/usr/local --disable-gpcloud --without-readline --disable-gpfdist --disable-orca
then,
PYTHON=/usr/bin/python3.11 ./configure --prefix=/usr/local --disable-gpcloud --without-readline --disable-gpfdist --disable-orca
Seems that you've solve the problem. Would you please close the issue?
not OK,
[gpadmin@test plpython]$ make
*** Cannot build PL/Python because libpython is not a shared library.
*** You might have to rebuild your Python installation. Refer to
*** the documentation for details.
not OK,
[gpadmin@test plpython]$ make *** Cannot build PL/Python because libpython is not a shared library. *** You might have to rebuild your Python installation. Refer to *** the documentation for details.
Yes, PL/Python requires Python's dynamic shared library libpython.so
. I'm not sure if your system package manager provides it. If it doesn't provide it, you'll need to compile Python yourself.