I am using RHEL 6.8 (kernel 2.6.32-642.11.1.el6.x86_64) and do not have root access.
I cannot build python2.7 with zlib support because zlib does not exist on my server and I an not root. I am able to build zlib in a local directory, and I am also able to build python2.7 in a local directory without zlib support.
How can I now link to libz.a and libz.so in this local directory while building python?
I have tried multiple things based on searching online (rpath, LD_LIBRARY_PATH, uncommenting the zlib line in Modules/Setup.dist) but so far nothing has worked.
Any help appreciated.