Ubuntu 16.04. The flags didn't work for me. Configuring ldconfig helped:
1. sudo nano /etc/ld.so.conf.d/lib.conf write path to ssl lib: "/usr/local/ssl" 2. sudo ldconfig 3. pyenv install 3.11 4. Profit!
May need to install openssl from source: