gpdb icon indicating copy to clipboard operation
gpdb copied to clipboard

compile plpython3 in an exist greenplum6, error

Open wonb168 opened this issue 3 months ago • 5 comments

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

wonb168 avatar Apr 08 '24 02:04 wonb168

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

higuoxing avatar Apr 08 '24 02:04 higuoxing

then,

PYTHON=/usr/bin/python3.11 ./configure --prefix=/usr/local --disable-gpcloud --without-readline --disable-gpfdist --disable-orca

wonb168 avatar Apr 08 '24 09:04 wonb168

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?

higuoxing avatar Apr 08 '24 11:04 higuoxing

not OK, image

[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.

wonb168 avatar Apr 09 '24 02:04 wonb168

not OK, image

[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.

higuoxing avatar Apr 09 '24 02:04 higuoxing