Having trouble running matlab on linux

4 Ansichten (letzte 30 Tage)
Zaid Qureshi
Zaid Qureshi am 25 Dez. 2015
Kommentiert: Alexander Gehrke am 26 Sep. 2019
Hi,
Thank you in advance for your help.
I have successfully installed matlab 2015b on my linux machine. Originally when I tried to run matlab from my terminal I would get the following error:
"Cannot locate com/mathworks/jmi/OpaqueJavaInterface"
I made sure my MATLAB_JAVA path was set and that everything was good but was still getting the error.
So I removed the Matlab files and reinstalled it.
Now I am getting the following when I try to run matlab from the terminal:
/usr/local/bin/matlab: line 1240: 17461 Aborted (core dumped) $MATLAB/bin/$ARCH/need_softwareopengl $display > /dev/null 2>&1
MATLAB is selecting SOFTWARE OPENGL rendering.
And matlab doesn't open. I have no idea why this isn't working. I have listed the output of the matlab -e command below.
/usr/local/bin/matlab: line 1240: 17505 Aborted (core dumped) $MATLAB/bin/$ARCH/need_softwareopengl $display > /dev/null 2>&1
MATLAB is selecting SOFTWARE OPENGL rendering.
XDG_VTNR=1
XDG_SESSION_ID=c1
MATLABPATH=/usr/local/toolbox/local
TERM=xterm-256color
VTE_VERSION=4201
SHELL=/bin/bash
ALTERAOCLSDKROOT=/home/zaid/altera/15.0/hld
WINDOWID=37748968
OLDPWD=/usr/local
QSYS_ROOTDIR=/home/zaid/altera/15.0/quartus/sopc_builder/bin
GTK_MODULES=canberra-gtk-module
USER=zaid
LD_LIBRARY_PATH=/usr/local/sys/opengl/lib/glnxa64:/usr/local/sys/os/glnxa64:/usr/local/bin/glnxa64:/usr/local/extern/lib/glnxa64:/usr/lib/jvm/java-8-openjdk/jre//lib/amd64/native_threads:/usr/lib/jvm/java-8-openjdk/jre//lib/amd64/server
AUTOMOUNT_MAP=
MATLAB_JAVA=/usr/lib/jvm/java-8-openjdk/jre/
OSG_LD_LIBRARY_PATH=/usr/local/sys/openscenegraph/lib/glnxa64
TOOLBOX=/usr/local/toolbox
MAIL=/var/spool/mail/zaid
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
PWD=/home/zaid
EDITOR=geany
LANG=en_US.UTF-8
XFILESEARCHPATH=/usr/lib/jvm/java-8-openjdk/jre//lib/locale/%L/%T/%N%S:
BASEMATLABPATH=
HOME=/home/zaid
XDG_SEAT=seat0
SHLVL=4
MATLAB=/usr/local
LOGNAME=zaid
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
ARCH=glnxa64
WINDOWPATH=1
XDG_RUNTIME_DIR=/run/user/1000
DISPLAY=:0
XAUTHORITY=/home/zaid/.Xauthority
_=/usr/bin/env
  5 Kommentare
Florian Werner
Florian Werner am 24 Mär. 2016
I had your problem too when I tried to get the R2016a running. It turned out, that the folder .matlab in my home directory was owned by root and no by my user.
sudo chown -cR user:user .matlab
and MATLAB runs again. Worked out for me at least, hopefully for you too.
Alexander Gehrke
Alexander Gehrke am 26 Sep. 2019
Florian Werner's approach actually solved the problem for me! Apparantly an old Matlab installation changed all the permissions in .matlab

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by