I'm trying to compile python 2.7.9 on a Sparc Solaris 10 machine. I've managed to successfully install it, except for _ssl:
Python build finished, but the necessary bits to build these modules were not found:
_bsddb _ssl _tkinter
bsddb185 gdbm linuxaudiodev
ossaudiodev
OpenSSL is installed, and the libs and includes are here:
libs here: /usr/sfw/lib
and includes here: /usr/sfw/include/openssl
The libs are:
lrwxrwxrwx 1 root root 17 May 16 2014 libssl.so -> ./libssl.so.0.9.7
-rwxr-xr-x 1 root bin 1424312 Jun 27 2013 libssl.so.0.9.7
-rwxr-xr-x 1 root bin 151540 Jun 27 2013 libssl_extra.so.0.9.7
-rw-r--r-- 1 root bin 293 Jan 22 2005 llib-lssl
-rw-r--r-- 1 root bin 279739 Jun 21 2013 llib-lssl.ln
So, after some research it appears that python only checks for the existence of the libs in the standard paths:
e.g. /usr/local/ssl/lib
& /usr/local/ssl/include
The process to resolve it is to (I believe) edit setup.py in the source tree and add the paths to these sections like:
ssl_libs = find_library_file(self.compiler, 'ssl',lib_dirs,
['/usr/sfw/lib',
'/usr/local/ssl/lib',
'/usr/contrib/ssl/lib/'
] )
...and...
search_for_ssl_incs_in = [
'/usr/sfw/include/openssl',
'/usr/local/ssl/include',
'/usr/contrib/ssl/include/'
]
I am cleaning, then running this configure again:
./configure --prefix=/opt/python-2.7.9 --enable-shared
...then re-compiling using dmake
.
It is still unable to find the libs. Is my method for working-around this correct?
Much appreciated.