matlab looks for iris_dri.so in the wrong folder
Hello everyone,
I hope you can help me with this.
I am using Ubuntu 20.04 and I installed matlab. Whenever I open matlab from the terminal I get the following error messages:
ATLAB is selecting SOFTWARE OPENGL rendering.
Gtk-Message: 18:21:17.708: Failed to load module "canberra-gtk-module"
MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
failed to load driver: iris
MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
failed to load swrast driver
It is pretty clear what is happening since the folder usr/lib/dri does not exist. However, if you look into the suggested folder /usr/lib/x86_64-linux-gnu/dri I can find the required .so files there.
I am trying to set it up so that matlab automatically looks for the required files in /usr/lib/x86_64-linux-gnu/dri but I have not been able to do this.
This is the command that I used for this: LIBGL_DRIVERS_PATH=/usr/lib/x86_64-linux-gnu/dri LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/
When I try to run glxgears I get no problems at all. I see the gears turning and no error messages pop up.
I appreciate any help you can provide.
Best,
Ps, I am not a programmer...