I should have mentioned, earlier I made these changes to Setup 2022-05-22 14:54 vim /home/lking/python/Python-3.10.4/Modules/Setup 207c207 < #_socket socketmodule.c --- > _socket socketmodule.c 211,217c211,217 < # OPENSSL=/path/to/openssl/directory < # _ssl _ssl.c \ < # -I$(OPENSSL)/include -L$(OPENSSL)/lib \ < # -lssl -lcrypto < #_hashlib _hashopenssl.c \ < # -I$(OPENSSL)/include -L$(OPENSSL)/lib \ < # -lcrypto --- > OPENSSL=/usr/local/custom-openssl > _ssl _ssl.c \ > -I$(OPENSSL)/include -L$(OPENSSL)/lib \ > -lssl -lcrypto > _hashlib _hashopenssl.c \ > -I$(OPENSSL)/include -L$(OPENSSL)/lib \ > -lcrypto