---
title: Ubuntu Linux - How to fix missing shared library in Passenger
date: '2023-01-12T00:00:00+00:00'
url: https://www.abhinav.co/passengeragent-error-while-loading-shared-libraries-cannot-open-shared-object-file-no-such-file-or-directory
summary: This error can be fixed by manually downloading the missing library.
tags:
- Ubuntu
- Linux
- Passenger
- Ruby
- Nginx
- Rails
- RoR
author: Abhinav Saxena
---

# 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:

```sh
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
```
