HI Vincent.
You need the sources of the OpenSSL library, not the compiled library.
On Ubuntu, the packages with sources are typically named xxx-dev where
xxx is the package that provides the library. I don't have a Ubuntu currently, but try looking for something like openssl-dev or
libopenssl-dev etc.
In case this helps you find the correct package to install:
$ python3 -c "if True:
import sslOk.
print('Ok.')
"
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=24.04
DISTRIB_CODENAME=noble
DISTRIB_DESCRIPTION="Ubuntu 24.04.1 LTS"
$ apt list --installed | grep ssl
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
libssl-dev/noble-updates,noble-security,now 3.0.13-0ubuntu3.4 amd64 [installed]
libssl3t64/noble-updates,noble-security,now 3.0.13-0ubuntu3.4 amd64 [installed,automatic]
libxmlsec1t64-openssl/noble,now 1.2.39-5build2 amd64 [installed,automatic] openssl/noble-updates,noble-security,now 3.0.13-0ubuntu3.4 amd64 [installed,automatic]
ssl-cert/noble,noble,now 1.1.2ubuntu1 all [installed,automatic]
In case this helps you find the correct package to install:
$ python3 -c "if True:
import sslOk.
print('Ok.')
"
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=24.04
DISTRIB_CODENAME=noble
DISTRIB_DESCRIPTION="Ubuntu 24.04.1 LTS"
$ apt list --installed | grep ssl
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
libssl-dev/noble-updates,noble-security,now 3.0.13-0ubuntu3.4 amd64 [installed]
libssl3t64/noble-updates,noble-security,now 3.0.13-0ubuntu3.4 amd64 [installed,automatic]
libxmlsec1t64-openssl/noble,now 1.2.39-5build2 amd64 [installed,automatic] openssl/noble-updates,noble-security,now 3.0.13-0ubuntu3.4 amd64 [installed,automatic]
ssl-cert/noble,noble,now 1.1.2ubuntu1 all [installed,automatic]
Thanks Jason, I have near the same result of you.
I need to explain the context.
I'm on a new machine with a fresh install of Ubuntu 24.04 wich embed Python 3.12.3, no problem with that.
As I'm maintainer of some Python modules published on PyPI, I've the habit of testing my modules in different virtual environments. For now Python 3.11, 3.12 and 3.13.
So, I've maybe found a solution:
I've create in my home a dir named /opt, download into it the latest version of openssl-1.1.1 and uncompress it.(*)
-------------------------------------------------------------
$ cd opt/openssl-1.1.1w
$ ./config && make && make test
$ mkdir $HOME/opt/lib
$ mv $HOME/opt/openssl-1.1.1w/libcrypto.so.1.1 $HOME/opt/lib/
$ mv $HOME/opt/openssl-1.1.1w/libssl.so.1.1 $HOME/opt/lib/
$ export LD_LIBRARY_PATH=$HOME/opt/lib:$LD_LIBRARY_PATH --------------------------------------------------------------
And rerun the compilation of 3.12.9 without problem with openssl.
(*) https://openssl-library.org/source/old/1.1.1/index.html
Vincent.
----- Synchronet 3.20c-Linux NewsLink 1.2
https://mail.python.org/mailman/listinfo/python-list
In case this helps you find the correct package to install:
$ python3 -c "if True:
import sslOk.
print('Ok.')
"
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=24.04
DISTRIB_CODENAME=noble
DISTRIB_DESCRIPTION="Ubuntu 24.04.1 LTS"
$ apt list --installed | grep ssl
WARNING: apt does not have a stable CLI interface. Use with caution in
scripts.
libssl-dev/noble-updates,noble-security,now 3.0.13-0ubuntu3.4 amd64
[installed]
libssl3t64/noble-updates,noble-security,now 3.0.13-0ubuntu3.4 amd64
[installed,automatic]
libxmlsec1t64-openssl/noble,now 1.2.39-5build2 amd64 [installed,automatic] >> openssl/noble-updates,noble-security,now 3.0.13-0ubuntu3.4 amd64
[installed,automatic]
ssl-cert/noble,noble,now 1.1.2ubuntu1 all [installed,automatic]
Thanks Jason, I have near the same result of you.
I need to explain the context.
I'm on a new machine with a fresh install of Ubuntu 24.04 wich embed Python 3.12.3, no problem with that.
As I'm maintainer of some Python modules published on PyPI, I've the
habit of testing my modules in different virtual environments. For now
Python 3.11, 3.12 and 3.13.
So, I've maybe found a solution:
I've create in my home a dir named /opt, download into it the latest version of openssl-1.1.1 and uncompress it.(*)
-------------------------------------------------------------
$ cd opt/openssl-1.1.1w
$ ./config && make && make test
$ mkdir $HOME/opt/lib
$ mv $HOME/opt/openssl-1.1.1w/libcrypto.so.1.1 $HOME/opt/lib/
$ mv $HOME/opt/openssl-1.1.1w/libssl.so.1.1 $HOME/opt/lib/
$ export LD_LIBRARY_PATH=$HOME/opt/lib:$LD_LIBRARY_PATH --------------------------------------------------------------
And rerun the compilation of 3.12.9 without problem with openssl.
(*) https://openssl-library.org/source/old/1.1.1/index.html
Sysop: | DaiTengu |
---|---|
Location: | Appleton, WI |
Users: | 1,064 |
Nodes: | 10 (0 / 10) |
Uptime: | 150:05:33 |
Calls: | 13,691 |
Calls today: | 1 |
Files: | 186,936 |
D/L today: |
438 files (115M bytes) |
Messages: | 2,410,972 |