Having trouble running matlab on linux
显示 更早的评论
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 个评论
Walter Roberson
2015-12-26
Software OpenGL is not supported for Linux in R2015b, if I understand the documentation.
That does not explain why it thinks it needs it.
Zaid Qureshi
2015-12-26
编辑:Zaid Qureshi
2015-12-26
Walter Roberson
2015-12-26
Ummm, maybe it is only the "opengl software" command that is not present on Linux and possibly it is always "opengl software", considering the first example there that mentions MESA.
Florian Werner
2016-3-24
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
2019-9-26
Florian Werner's approach actually solved the problem for me! Apparantly an old Matlab installation changed all the permissions in .matlab
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!