How to install Viber in CentOS/RHEL 8

by , , revisited on

We have by far the largest RPM repository with NGINX module packages and VMODs for Varnish. If you want to install NGINX, Varnish, and lots of useful performance/security software with smooth yum upgrades for production use, this is the repository for you.
Active subscription is required.

Official Viber website has .rpm package available for download of Viber Desktop. However, it, sure enough, can’t account for all Linux flavors that support RPM package format.

When I downloaded and installed Viber package, I did not immediately notice that I can’t send images or can’t see higher resolution pictures sent to me. But later I did.

If you follow along your /var/log/messages, you can find a lot of messages related to Viber failing to use some SSL functions:

viber.desktop[29259]: QSslSocket: cannot call unresolved function SSL_library_init
viber.desktop[29259]: QSslSocket: cannot call unresolved function ERR_get_error
viber.desktop[29259]: QSslSocket: cannot call unresolved function SSLv23_client_method
viber.desktop[29259]: QSslSocket: cannot call unresolved function SSL_CTX_new

Now that we know what problem we have, here are some tips and tricks on how to install Viber Desktop properly in CentOS/RHEL 8. And how to have it running without errors.

Install Viber and OpenSSL 1.0.x

The key to making Viber work properly with RHEL 8 based systems is compat-openssl10 package.
Why is because Viber is compiled against older OpenSSL, whereas RHEL 8 ships with new OpenSSL by default.

sudo dnf install
sudo dnf install viber compat-openssl10

Tweak Viber to use older OpenSSL

This is easy with a few commands:

sudo ln -s /usr/lib64/ /opt/viber/lib/
sudo ln -s /usr/lib/ /opt/viber/lib/

Getting audio messages to play

You may notice that the audio messages do not play in desktop Viber.

Fixing this is relatively easy. Ensure rpmfusion repo is installed first. Then:

sudo dnf install gstreamer1-plugins-bad-freeworld

Restart your Viber and viola, audio messages play fine.

Getting video messages to play

Same problem with videos 🙂 Fixing is also easy:

sudo dnf install gstreamer1-libav

There, not only Viber can be launched now. It is fully functional 🙂

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: