Error message:
/usr/lib64/libQt5XcbQpa.so.5: version Qt_5_PRIVATE_API not found (required by /usr/lib/rstudio/plugins/platforms/libqxcb.so
I found the following in /usr/lib64
rwxrwxrwx. 1 root root 22 Apr 22 23:17 libQt5XcbQpa.so.5.15 -> libQt5XcbQpa.so.5.15.2
-rwxr-xr-x. 1 root root 1477776 Apr 22 23:23 libQt5XcbQpa.so.5.15.2
lrwxrwxrwx. 1 root root 22 Jun 3 09:18 libQt5XcbQpa.so.5 -> libQt5XcbQpa.so.5.15.2
The following fixed the problem
cd /usr/lib64/
rm libQt5XcbQpa.so.5
cp /usr/lib/rstudio/lib/libQt5XcbQpa.so.5 libQt5XcbQpa.so.5.0
ln -s libQt5XcbQpa.so.5.0 libQt5XcbQpa.so.5
It appears that rstudio will not work with libQt5XcbQpa.so.5.15.2
System Info
Rocky Linux 8.6 [RHEL 8.6] 4.18.0-372.9.1.el8.x86_64