Segmentation fault when running X program on Linux

I'm running Red Hat Enterprise Linux release 8.10. Yes, I installed Xming on my workstation. Yes, I configured Putty correctly. Yet I still had an issue.

Problem

When I tried to run an X program on my remote server with the display set correctly to my local workstation, I received the following error:

[opc@soadev ~]$ firefox
Couldn't open libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
Redirecting call to abort() to mozalloc_abort

Segmentation fault (core dumped)

Solution

There were two packages missing that I needed to install:

yum install mesa-libGL
yum install mesa-libGL-devel

And voila! It worked now!

References