经过大量时间的投入,我觉得自己可以在朋友的高端计算机上运行我的代码了。我编译了我的应用程序(名为 Zeta)。然而,当我输入:
sh '/home/nicbit/Desktop/run_Zeta.sh' /usr/local/MATLAB/MATLAB_Compiler_RuntimeD
在我的计算机上测试这一点,我收到以下错误代码:
------------------------------------------
Setting up environment variables
---
LD_LIBRARY_PATH is .:/usr/local/MATLAB/MATLAB_Compiler_Runtime/runtime/glnxa64:
/usr/local/MATLAB/MATLAB_Compiler_Runtime/bin/glnxa64:/usr/local/MATLAB
/MATLAB_Compiler_Runtime/sys/os/glnxa64:/usr/local/MATLAB/MATLAB_Compiler_Runtime
/sys/java/jre/glnxa64/jre/lib/amd64/native_threads:/usr/local/MATLAB
/MATLAB_Compiler_Runtime/sys/java/jre/glnxa64/jre/lib/amd64/server:/usr/local/MATLAB
/MATLAB_Compiler_Runtime/sys/java/jre/glnxa64/jre/lib/amd64/client:/usr/local/MATLAB
/MATLAB_Compiler_Runtime/sys/java/jre/glnxa64/jre/lib/amd64
/home/nicbit/Desktop/run_Zeta.sh: 1: eval: /home/nicbit/Desktop/Zeta: Permission
denied
作为回应,我尝试过:
sudo sh '/home/nicbit/Desktop/run_Zeta.sh' /usr/local/MATLAB/MATLAB_Compiler_RuntimeD
导致同样的错误。我还对文件进行了 chmode 处理,以便
ls -la '/home/nicbit/Desktop/run_Zeta.sh'
返回:
-rwxrwxrwx 1 nicbit nicbit 1135 Jan 23 18:50 /home/nicbit/Desktop/run_Zeta.sh
但出现了相同的错误代码。有人知道如何解决这个问题吗?谢谢