I'm trying to build Python 3.6.4 from LFS 8.2-systemd so I run the configure command:
./configure --prefix=/usr \
--enable-shared \
--with-system-expat \
--with-system-ffi \
--with-ensurepip=yes
followed by make -j
.
However, at this point the module "pyexpat" is not found by Python, but the file exists in /usr/lib/libexpat.so
.
After reading building Python from source with zlib support, I created a symlink:
ln -s /usr/lib /usr/lib/x86_64-gnu-linux
If i run make install
, I get an error:
ModuleNotFoundError: No module named pyexpat
My expat lib version is 2.2.5
.
I'm doing the compilation inside env -i chroot /mnt bash
and my environment just contains a valid PATH
and LX_ALL=POSIX
variables.