Clear Filters
Clear Filters

Compiling fo Linux Ubuntu

7 views (last 30 days)
Emilio Giuseppe Piracci
Emilio Giuseppe Piracci on 24 Feb 2021
Answered: Nihal on 17 May 2024
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

Answers (1)

Nihal
Nihal on 17 May 2024
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!

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!