How does one install Python 3.7 in HPC without root access on Linux?

Joined
Jul 27, 2023
Messages
1
Reaction score
0
I followed this link i found on github, (link : https://github.com/ranzan998/hpc_python) and managed to install all required libraries, made necessary changes to the .bashrc. I crossed checked all the paths and they seem fine. I’m currently stuck with an SSL error and I’m not sure how to proceed forward.



This is the link to the installation in detail : https://github.com/ranzan998/hpc_python/blob/main/steps_detailed.txt





Here’s a snippet of the error shown in the terminal:



libpython3.7m.a(_ssl.o): In function `_ssl__SSLContext_impl':

/home/path/python/libraries/Python_374/./Modules/_ssl.c:3130: undefined reference to `SSL_CTX_get0_param'

/home/path/python/libraries/Python_374/./Modules/_ssl.c:3136: undefined reference to `X509_VERIFY_PARAM_set_hostflags'

/home/path/python/libraries/Python_374/./Modules/_ssl.c:2986: undefined reference to `TLSv1_1_method'

/home/path/python/libraries/Python_374/./Modules/_ssl.c:2988: undefined reference to `TLSv1_2_method'



‘undefined reference to’ seems to be the crux of the error. Can anybody help?
 
Joined
Sep 3, 2023
Messages
36
Reaction score
2
Linux From Scratch has instructions on building...

https://www.linuxfromscratch.org/lfs/view/stable/
ZLIB https://www.linuxfromscratch.org/lfs/view/stable/chapter08/zlib.html
OPENSSL https://www.linuxfromscratch.org/lfs/view/stable/chapter08/openssl.html
LIBFFI https://www.linuxfromscratch.org/lfs/view/stable/chapter08/libffi.html

https://www.linuxfromscratch.org/blfs/view/stable/
PYTHON 3.11
https://www.linuxfromscratch.org/blfs/view/stable/general/python3.html
PYTHON MODULES
https://www.linuxfromscratch.org/blfs/view/stable/general/python-modules.html
https://www.linuxfromscratch.org/blfs/view/stable/general/python-dependencies.html

of course its for the entire OS, but can glean the best way of doing things... (order & compatible versions)

-------------------------
from the above I assume your build directory '/home/path/python/libraries' ?

I would suggest something like '/home/path/build' and extracting the files there....
then installing to something like '/home/path/.local' or '/home/path/python3.7'
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,983
Messages
2,570,187
Members
46,747
Latest member
jojoBizaroo

Latest Threads

Top