OpenSSL compatibility issue with Ubuntu 22.04
After this change was merged, gdk update
and gdk reoncifgure
would fail on Ubuntu 22.04 with the following:
Installing openssl 2.2.1 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
---
checking for LIBRESSL_VERSION_NUMBER in openssl/opensslv.h... no
checking for OpenSSL version >= 1.0.1 and < 3.0.0... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
---
An error occurred while installing openssl (2.2.1), and Bundler cannot continue.
In Gemfile:
webauthn was resolved to 2.3.0, which depends on
openssl
Manually downloading and installing the following packages fixes the issue:
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.16_amd64.deb
wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/openssl_1.1.1f-1ubuntu2.16_amd64.deb
wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl-dev_1.1.1f-1ubuntu2.16_amd64.deb
sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.16_amd64.deb
sudo dpkg -i libssl-dev_1.1.1f-1ubuntu2.16_amd64.deb
sudo dpkg -i openssl_1.1.1f-1ubuntu2.16_amd64.deb