For When You Can't Have The Real Thing
[ start | index | login ]
start > CentOS > 8 > failed to load driver: swrast

failed to load driver: swrast

Created by dave. Last edited by dave, 40 days ago. Viewed 65 times. #1
[edit] [rdf]
labels
attachments
(2021-08-17)

Problem:

Some variety of

libGL error: MESA-LOADER: failed to open swrast: /usr/lib64/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib64/dri)
libGL error: failed to load driver: swrast

In my case it's some exotic CAD-tool studio thing being displayed across a ssh X-forward onto a vnc desktop, and then presented across a tunneled connection to the user. Any one of these hops could be the problem, but the internet seems to think it's the display-on-vnc one.

Solution:

Stop running tunnelled mesaGL apps.

But If You Can't Do That

I added /usr/lib64/dri to /etc/ld.so.conf.d/mesa.conf (which I created) and then ran ldconfig. Even though none of the drivers showed up subsequently when ldconfig -p was run, the application stopped complaining.

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt