Ubuntu Linux - How to fix missing shared library in Passenger

While trying to set up Ruby on Rails and Passenger on Ubuntu 22.04 (Jammy Jellyfish) I got following error:

PassengerAgent: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory

Fix

The fix for it is tricky but simple. Do the following:

wget http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.16_amd64.deb
sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.16_amd64.deb
© 2024 Abhinav Saxena   •   Powered by Soopr   •   Theme  Moonwalk