我正在尝试在 Ubuntu 12.04 上安装 Matlab,我有一台 32 位机器。我下载了文件并将文件安装设置为可执行,然后运行:
$ ./install -v
但后来我收到了错误:
Error : Cannot locate Java Runtime Environment (JRE).
The directory /Unix_MAC/sys/java/jre/glnx86/jre does not exist.
因此我决定将 matlab 的 jre 的路径添加到命令中(但在此之前我去了 sys/java/jre/glnxa64/jre/glnxa64 并将文件 java 更改为可执行文件),然后尝试:
$ ./install -v -javadir /home/mbenseddik/Unix_MAC/sys/java/jre/glnxa64/jre/
但后来我收到以下错误:
Preparing installation files ...
cp: impossible d'évaluer «/home/mbenseddik/Unix_MAC/bin/glnx86/*»: No such file or directory
-> DVD = /home/mbenseddik/Unix_MAC
-> ARCH = glnx86
-> DISPLAY = :0.0
-> TESTONLY = 0
-> JRE_LOC = /tmp/mathworks_11294/sys/java/jre/glnx86/jre
-> LD_LIBRARY_PATH = /tmp/mathworks_11294/bin/glnx86
Command to run:
/tmp/mathworks_11294/sys/java/jre/glnx86/jre/bin/java -Xmx512m -splash:"/home/mbenseddik/Unix_MAC/java/splash.png" -Djava.ext.dirs=/tmp/mathworks_11294/sys/java/jre/glnx86/jre/lib/ext:/tmp/mathworks_11294/java/jar:/tmp/mathworks_11294/java/jar/ja_JP/:/tmp/mathworks_11294/java/jar/zh_CN/:/tmp/mathworks_11294/java/jarext:/tmp/mathworks_11294/java/jarext/axis2/:/tmp/mathworks_11294/java/jarext/guice/:/tmp/mathworks_11294/java/jarext/webservices/ com/mathworks/professionalinstaller/Launcher -root "/home/mbenseddik/Unix_MAC" -tmpdir "/tmp/mathworks_11294"
Installing ...
/tmp/mathworks_11294/sys/java/jre/glnx86/jre/bin/java: 1: /tmp/mathworks_11294/sys/java/jre/glnx86/jre/bin/java: Syntax error: "(" unexpected
Finished
它似乎正在寻找 glnx86,而 sys/java/jre 目录内的唯一目录是 glnx64...
对此事有什么想法吗?
答案1
不幸的是,MATLAB 2013a 与 Linux 32 位不兼容。与此平台兼容的最后一个 MATLAB 版本是 R2012a。