How to compile a program on linux to run on a distant Linux machine?

조회 수: 15 (최근 30일)
Stepan Subik
Stepan Subik 2020년 3월 21일
댓글: Idan goldman 2021년 4월 29일
Hi,
I am pretty new to matlab, how do you compile my script, so I can just pass it to a distant Linux server to execute?
I have complied it as a Application via Matlab Compiler, but It had created some file (Main.prj) and a folder Main with folders for_redistribution, for_resistribution_files_only and for_testing. I just do not see any executable file in it that is working.
Can you help me?

답변 (1개)

Aghamarsh Varanasi
Aghamarsh Varanasi 2020년 3월 26일
Hi,
You can create standalone executables from MATLAB code using the Application Compiler App. This tool allows you to deploy standalone apps on any platform and execute them without installing MATLAB. Instead, you need the MATLAB Runtime to execute them.
As you mentioned that you compiled the script as an Application, you can find the executable in the for_redistribution’ folder. Make sure that you have MATLAB Runtime installed to run the executable file.
Please follow the steps in this MATLAB Help Center page to generate the executable from MATLAB script. You can also find the steps to install and run the executable in this page.
  댓글 수: 4
Stepan Subik
Stepan Subik 2020년 3월 26일
Yes, I know about it. It still tells me:
Installing ...
---------------------------------------------------------------------------
Error: Installation cannot proceed. You may either:
1. Set an X11 display, and restart the install process
2. Use the silent install feature by specifying the -mode silent option
---------------------------------------------------------------------------
Finished
Idan goldman
Idan goldman 2021년 4월 29일
Hello,
before you are running the installation you need to write this:
export DISPLAY=:0.0.
(see: the link)

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by