필터 지우기
필터 지우기

Compiling fo Linux Ubuntu

조회 수: 7 (최근 30일)
Emilio Giuseppe Piracci
Emilio Giuseppe Piracci 2021년 2월 24일
답변: Nihal 2024년 5월 17일
good morning,
please can you help me with the following:
I'm compiling a script (with Matlab Compiler app) in ver. 2018b, using a Linux Ubuntu 16.04 pc,
Will the executable file work also on Linux Ubuntu Version 20.04.2.0 LTS ?
thank you for the help
emilio

답변 (1개)

Nihal
Nihal 2024년 5월 17일
Yes, an executable file compiled in MATLAB version 2018b on a Linux Ubuntu 16.04 system should generally work on a newer Linux Ubuntu version, such as 20.04.2.0 LTS. However, there are a few considerations and steps you might need to take to ensure compatibility and smooth operation:
1. Runtime Compatibility
Ensure that the MATLAB Runtime corresponding to MATLAB version 2018b is installed on the Ubuntu 20.04.2.0 LTS system where you intend to run the compiled executable. The MATLAB Runtime is version-specific but not operating system version-specific, which means a runtime for MATLAB 2018b will work across different Ubuntu versions as long as the system requirements are met.
2. System Libraries
Differences in system libraries between Ubuntu 16.04 and 20.04 could potentially cause issues. Most of these are addressed by the MATLAB Runtime, which includes the specific libraries compiled code might need. However, if your code relies on external libraries or system calls, you might need to ensure these are still valid and compatible with Ubuntu 20.04.
3. MATLAB Runtime Installation
If the MATLAB Runtime is not already installed on the target Ubuntu 20.04 system, you will need to do so. You can download the appropriate version of the MATLAB Runtime from the MathWorks website for free. Ensure to choose the version that matches your MATLAB compiler version (2018b in your case).
5. Architecture Considerations
Ensure that the architecture (32-bit vs. 64-bit) of the MATLAB Runtime matches that of your target system. Most modern Linux systems, including Ubuntu 20.04, are 64-bit, but it’s good practice to confirm.
I hope this helps!

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by