Cannot run my compiled code

1 view (last 30 days)
nicholas
nicholas on 24 Jan 2014
Commented: nicholas on 24 Jan 2014
After putting in numerous hours, I felt ready to run my code on my friend's high end computer. I compiled my application (named Zeta). However, when I entered:
sh '/home/nicbit/Desktop/run_Zeta.sh' /usr/local/MATLAB/MATLAB_Compiler_RuntimeD
to test this on my computer, I received the following error code:
------------------------------------------
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
In response I tried:
sudo sh '/home/nicbit/Desktop/run_Zeta.sh' /usr/local/MATLAB/MATLAB_Compiler_RuntimeD
which resulted in the same error. I also chmoded the file so that
ls -la '/home/nicbit/Desktop/run_Zeta.sh'
returns:
-rwxrwxrwx 1 nicbit nicbit 1135 Jan 23 18:50 /home/nicbit/Desktop/run_Zeta.sh
but the same error code resulted. Does anyone know how to solve this issue. Thank you

Answers (1)

Walter Roberson
Walter Roberson on 24 Jan 2014
chmod u+rx /home/nicbit/Desktop/Zeta
  1 Comment
nicholas
nicholas on 24 Jan 2014
thanks for the quick responce, but unfortently, after entering that and attempting to fun the "run_Zeta.sh", it reported back the same error

Sign in to comment.

Categories

Find more on Application Deployment in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!