Having trouble running matlab on linux
9 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
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 件)
参考
カテゴリ
Help Center および 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!