matlab-support linux package

33 次查看(过去 30 天)
Michal
Michal 2024-9-24
评论: Wouter Verstraelen 2024-12-30,8:34
Suprisingly lot of MATLAB users on Linux using and activelly recommanding the matlab-support linux package.
Home page: https://launchpad.net/ubuntu/+source/matlab-support
See attached description:
--------------------- description-----------------------------
This package does not provide MATLAB. Instead, it configures an
existing MATLAB installation to integrate more comfortably in
a Debian installation.
Currently it provides /usr/bin/matlab through the alternatives
system, offers to work around incompatibilities between the libraries
bundled with MATLAB and system libraries, and provides a helper
utility meant to be used by other packages to compile MEX extensions.
Install this if you would like your MATLAB installation to behave more
like an ordinary Debian package. Other packages may depend on
this one if they install MATLAB code, for example in order to
compile MEX extensions.
I would like to know what exactly provide and what modification perform this package with MATLAB installation and Linux system settings. Any, more detailed info, regarding matlab-support package is not available!
Is that package recommanded by MATLAB community as a safe and reliable extension of MATLAB on Linux platform?
Thanks in advance for any help.

回答(1 个)

Saman Ghannadzadeh
Saman Ghannadzadeh 2024-10-12
编辑:Saman Ghannadzadeh 2024-10-12
You can see what this package does by looking at the source code at https://salsa.debian.org/debian/matlab-support
It:
  • Creates an application menu for MATLAB (i.e. in your KDE/Gnome/MATE menus)
  • Using the Debian alternatives system, creates symlinks for various components in /usr/bin (e.g. /usr/bin/matlab, /usr/bin/matlab-mex, ...)
  • MATLAB ships with quite a few shared libraries, however your Linux system will already have those. So the package renames the MATLAB provided ones (by adding .bak to their file name). This then forces MATLAB to use the system provided libraries instead. This is good because those libraries are regularly maintained and updated by your distributions package manager.
Although highly unlikely, switching to the system libraries could lead to problems as MATLAB might have shipped with a slightly different version of those libraries. If MATLAB calls a function that is defined differentely in these two versions then there could be a problem. However this is highly unlikely as these libraries (e.g. libstdc++) are very mature and so have a very stable and well-defined ABI that don't change across minor versions.
Here is the list of libraries:
$matlab_path/sys/os/glnx86/libgcc_s.so.1
$matlab_path/sys/os/glnx86/libstdc++.so.6
$matlab_path/sys/os/glnx86/libgfortran.so.5
$matlab_path/sys/os/glnx86/libquadmath.so.0
$matlab_path/sys/os/glnxa64/libgcc_s.so.1
$matlab_path/sys/os/glnxa64/libstdc++.so.6
$matlab_path/sys/os/glnxa64/libgfortran.so.5
$matlab_path/sys/os/glnxa64/libquadmath.so.0
$matlab_path/bin/glnxa64/libvulkan.so.1
$matlab_path/bin/glnxa64/libfreetype.so.6
  5 个评论
Wouter Verstraelen
Wouter Verstraelen 2024-12-20,8:53
@Michal I just appreciate the simplicity of opening matlab by clicking an icon instead of through a terminal. Plus indeed, I seem to remember that there were some complications regarding compatibilities that got solved through this package
Wouter Verstraelen
Wouter Verstraelen 2024-12-30,8:34
Okay, seems that the trick is in the /etc/matlab/debconf file

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

产品


版本

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by