CentOS 6: Meson/ninja In Python36 Requires Python27

Home » CentOS » CentOS 6: Meson/ninja In Python36 Requires Python27
CentOS No Comments

Hello there,

on a CentOS 6 box, in the need for `meson`, I’ve installed rh-python36
using yum, then meson and ninja using `pip3.6 install meson ninja`.

Later at run-time, while building atk 2.29.1:

$ meson –prefix /opt/atk _build
$ ninja-build -C _build

FAILED: atk/atkmarshal.c
/opt/gimp-2.8/bin/glib-genmarshal –prefix atk_marshal –output atk/atkmarshal.c –body ../atk/atkmarshal.list –include-header atkmarshal.h
/opt/rh/python27/root/usr/bin/python: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory ninja: build stopped: subcommand failed.

Adding /opt/rh/python27/usr/lib64 to LD_LIBRARY_PATH works around this problem, but I wonder if there isn’t a dependency issue, or did I do something wrong?

Regards,