In trying to build Python, I kept getting the following errors:

Failed to build these modules:
_hashlib           _ssl                               



I had Openssl installed, but whenever I used any software, where Python was 
called on to use md5 I'd get errors. This stopped from building several 
packages that I wanted. The fix is to go into the source directory of Python 
and edit Modules/Setup (or Steup.dist on a fresh build) and uncomment out a few 
lines. This may be clear to a lot of people, but not clear to me:

 Socket module helper for socket(2)
_socket socketmodule.c

# Socket module helper for SSL support; you must comment out the other
# socket line above, and possibly edit the SSL variable:
SSL=/usr/ssl
_ssl _ssl.c \
        -DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
        -L$(SSL)/lib -lssl -lcrypto




      
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to