Ubuntu – How to Run Matlab 2016a with Nvidia Drivers of GTX-960 in Ubuntu 16.04

16.04MATLABnvidia

System: i7 of 2013, 32 GB, GTX-960 Nvidia, Asus Desktop PC.
I get continuously system error

MATLAB is exiting because of fatal error:
- - 
Segmentation violation detected at Sat Apr 30 17:40:16 2016

I know the thread Matlab problem on ubuntu 16.04. I have deb http://us.archive.ubuntu.com/ubuntu xenial main multiverse in my /etc/apt/sources.list. I have also matlab-support in my system.

I know the thread Matlab not work on ubuntu 16.04? and the thread matlab crash dump log file so I do

cd /usr/local/MATLAB/R2016a/sys/os/glnxa64/
sudo ln -sf /usr/lib/x86_64-linux-gnu/libgfortran.so.3.0.0 libgfortran.so.3
sudo ln -sf /usr/lib/x86_64-linux-gnu/libquadmath.so.0.0.0 libquadmath.so.0
sudo ln -sf /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19 libstdc++.so.6

but the problem still persists. Running also sudo apt-get install libquadmath0:amd64 libgfortran3:amd64 does not solve the problem.
I installed 64 bit Matlab 2016a in my Ubuntu 16.04. I sent the logs to the developers but no answer yet.
Matlab initial technical support answer

An initial investigation leads us to believe there may be a bug in
your graphics card drivers.

Several users have reported this issue with a recent upgrade to the
Nvidia driver version 361.28 for Linux, and they were able to resolve
it by downgrading their driver to version 352.79 from the following
page: …

Nvidia Devtalk about the situation here with bug ID 1744483.
I downgraded the GPU driver to noveau driver, and no crash anymore at the login, not sure how long stability.
This fix is only a short-term fix because these noveau drivers cause other crashes in other environments, and complications such as "itching" of the screen when moving windows, and now possibly also crash of Mouse control.
Another temporary fix without downgrade running with matlab -softwareopengl.


How can you run Matlab 2016a with Nvidia Drivers of GTX-960 in Ubuntu 16.04?

Best Answer

the problem with the matlab libraries: it contain old libraries as compare to ubuntu and they conflict with the new one...

you can check this for solution: Doesn't Matlab work on ubuntu 16.04?

or run

sudo apt-get install matlab-support

and during installation choose replace the libraries with .bek file name.