8

I can't open Matlab 2013a after I upgrade Ubuntu 14.10 to 15.04. I have also tried to open from the location folder, and when I try to open it from the console using $

$ cd /usr/local/MATLAB/R2013a/bin/
$ ./matlab

I get the following message.

5 Answers5

13

I was having the same problem, I guess from the error messages that it was due to the the old libc libraries used by Matlab.

I installed the packages matlab-support and matlab-support-dev and things started to work.

One more thing: Chose to rename the old GCC libraries form MATLAB and use the new ones from Ubuntu when asked!!!

Jorge Castro
  • 73,717
Pedro
  • 131
11

According to the following line from your message, you have the jayatana package installed:

Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar

This package is responsible for application menu support for Java swing applications, and seems to be the cause for the segfault. Removing it worked for me:

sudo apt-get remove jayatana

Don't forget to restart your session afterwards as the package installs the JAVA_TOOL_OPTIONS environment variable. Or try it from a terminal window:

JAVA_TOOL_OPTIONS= /path/to/your/matlab
Seebicah
  • 126
0

One stackoverflow thread showed that segmentation violation error can be solved by changing the default renderer to zbuffer. Add this line to the startup.m file:

set(0, 'DefaultFigureRenderer', 'zbuffer');

Ron
  • 20,938
0

A simple solution is to unset the environment variable causing the problem before running Matlab. Seems to work so far without side effects:

$ unset JAVA_TOOL_OPTIONS
$ matlab
0

For me, graphics card(Nvidia) was a problem. Try switching to default graphics. Then reboot your system and run matlab.