Как установить матлаб на линукс
Перейти к содержимому

Как установить матлаб на линукс

  • автор:

Установите Matlab2017a в среде Linux (Ubuntu16.04)

Заявление об авторском праве: эта статья является оригинальной статьей блоггера, и авторское право принадлежит мне. Любое лицо, группа или учреждение перепечатывает или частично воспроизводит или извлекает информацию. Пожалуйста, сохраните ссылку на блог или укажите источник. Адрес блога:https://blog.csdn.net/qq_31285709/article/details/82083902

предисловие
Скачать файл изображения
Создать каталог монтирования
Смонтировать образ R2017a_glnxa64_dvd1.iso
Установить образ
Смонтировать образ R2017a_glnxa64_dvd2.iso
взломать лицензии
Начать Matlab

предисловие

Из-за требований проекта для запуска кода на сервере должна быть установлена ​​matlab. Для новичков в Linux установка matlab в первой среде Linux все еще немного смущает. Позже я обратился к онлайн-учебнику и установил его сам. Видя, что учебные пособия недостаточно подробны, я собрал подробную версию учебных пособий для вашей справки. Общий процесс установки Matlab2017a в операционной системе Linux (Ubuntu16.4) в основном относится к следующим трем блогам: спасибо трем авторам за их руководство.

Мой контент в основном представляет собой подробное описание процесса установки в виде небольшого белого учебника. В статье приводятся основные команды операций, объясняются проблемы, которые могут возникнуть, а также приводятся сведения о моей фактической установке для справки, а также много оригинального авторского контента.
Перед запуском содержимого я надеюсь, что перед установкой необходимо обратить внимание на несколько путей: каталог зеркала, в котором хранится загруженный файл образа, каталог монтирования, в котором смонтирован файл образа, и путь установки Matlab ( (Альтернативные пути к двум взломанным файлам, путь запуска matlab). Поскольку в начале установки я был довольно смущен этими путями, я разобрался с ними, и их было легко установить позже.

Скачать файл изображения

Началась подготовка файла образа matlab2017a.

Ссылка на сетевой диск Matlab 2017a для Linux64 выглядит следующим образом:
Ссылка :https://pan.baidu.com/s/1sH1YYAehZmw-Y-KJlsyMtA Пароль: dgsl

На сетевом диске я распаковал Matlab 2017a Linux64 Crack.rar и скопировал файл libmwservices.so в каталоге R2017 в каталог, где находится образ. Мой каталог зеркал дома / вниз / MATLAB
Подробнее:
Файлы, содержащиеся в файле сетевого диска:

Эти файлы можно увидеть, введя каталог зеркала в командной строке.

Затем перейдите в домашний каталог и запустите процесс установки.

Создать каталог монтирования

Сначала создайте папку с именем Matlab в домашнем каталоге, чтобы смонтировать образ.

Подробнее:
Мое имя пользователя здесь — hadoop, а каталог монтирования — / home / hadoop / Matlab

Смонтировать образ R2017a_glnxa64_dvd1.iso

Необходимо перейти в каталог файла образа, использовать следующую команду в каталоге файла образа, смонтировать R2017a_glnxa64_dvd1.iso в ранее созданный каталог монтирования. R2017a_glnxa64_dvd1.iso — это сокращение имени файла изображения. Когда вы вводите командную строку, пишите имя файла изображения.

Подробнее:

В настоящее время вы найдете установочный диск Matlab в столбце «Устройство» папки, в которой содержатся файлы из образа Matlab.

В случае сбоя монтирования выполните следующую команду, чтобы изменить права доступа к файлу образа в каталоге зеркала, а затем снова подключите его с помощью предыдущей команды.

Установить образ

вернитесь в домашний каталог, используйте следующую команду для запуска программы установки.

Подробнее:


Затем войдите в привычный интерфейс установки.

  1. Установка с ключами, не подключенными к Интернету

    2. После принятия условий введите серийный номер 09806-07443-53955-64350-21751-41297

    Первый серийный номер в файле Readme. Использование других серийных номеров для последующего взлома может вызвать проблемы.
    3. Выберите путь установки и необходимые инструменты. Лучше всего выбирать установленные продукты по пути по умолчанию / usr / local / MATLAB / R2017a.


    4. Далее нажмите «Установить», чтобы начать установку.

Смонтировать образ R2017a_glnxa64_dvd2.iso

Когда индикатор выполнения загружен примерно до 75%, появится окно, которое должно загрузить R2017a_glnxa64_dvd2.iso.

В настоящее время вам нужно открыть другое окно командной строки, размонтировать подключенный в данный момент образ R2017a_glnxa64_dvd1.iso, а затем смонтировать образ R2017a_glnxa64_dvd2.iso, указанная ниже команда:

перейдите в каталог зеркала, смонтируйте зеркало R2017a_glnxa64_dvd2.iso

Подробнее:

В это время содержимое установочного диска Matlab в столбце «Устройство» папки станет содержимым зеркала R2017a_glnxa64_dvd2.iso, а затем щелкните индикатор выполнения OK, чтобы продолжить до завершения установки. ,


Готово отображается в первом командном окне.

Затем размонтируйте изображение R2017a_glnxa64_dvd2.iso во втором командном окне.

взломать лицензии

Замените взломанный файл лицензий, в основном замену файлов license_standalone.lic и libmwservices.so в пути установки matlab. Здесь я по умолчанию путь установки, различные пути могут быть изменены относительно. В первом командном окне, во-первых,

Затем перейдите в каталог зеркала и используйте следующую команду:

Подробнее:

Начать Matlab

Запустите matlab из пути установки matlab и измените соответственно разные пути установки. В других руководствах рассказывается, как создать автозагрузку на рабочем столе, что легко реализовать, и здесь я расскажу, как использовать командную строку.

Активируйте Matlab в первый раз

При первом запуске matlab всплывет окно активной команды, выберите активацию с файлом и затем выберите файл license_standalone.lic в каталоге зеркала.




показывает, что активация завершена, и затем вы можете использовать команду для запуска matlab для нормального запуска matlab.

Step 1.

Ananya Agrawal

Download Matlab for Linux using the link provided by the college after you make an account on official Matlab website using your college email id.

Step 2.

Open up the terminal and confirm that matlab_R20XXa_glnxa64.zip is located within your

Step 3.

Create a destination /usr/local/MATLAB/R2018a/ directory for the Matlab installation.

Step 4.

Unzip the Matlab installation package.
Navigate to your

/Downloads directory and create a new temporary matlab directory to store the content of the matlab_R20XXa_glnxa64.zip file:

While still in the

/Downloads directory use the unzip command to extract the content of the matlab_R20XXa_glnxa64.zip file into the previously created

The content of the matlab_R20XXa_glnxa64.zip file should now be located within the

Step 5.

Start the Matlab installer wizard:

Now the download wizard will get started.

Put proxy details in “Connection Settings” if you are behind a proxy server and choose “log in with a MathWorks Account”

Put the credentials used for making an account on the website and then just proceed with default settings till the installation begins.

After installation gets over you will get a prompt asking “login”.
Put your laptop user name on it.

To find your login name:

By default the MATLAB installer will create a symbolic link in /usr/local/bin/. This means you should be able to invoke MATLAB by typing “matlab” in the command prompt.

If you see an error saying that the command “matlab” was not found, you can launch MATLAB from the MATLAB installation directory. By default this is located here:

For example, to launch MATLAB R2016b first navigate to the bin directory inside the MATLAB installation directory:

Sorry, you have been blocked

This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data.

What can I do to resolve this?

You can email the site owner to let them know you were blocked. Please include what you were doing when this page came up and the Cloudflare Ray ID found at the bottom of this page.

Cloudflare Ray ID: 7ef90e817a25c219 • Your IP: Click to reveal 178.132.111.46 • Performance & security by Cloudflare

MATLAB

MATLAB is a programming and numeric computing platform used by millions of engineers and scientists to analyze data, develop algorithms, and create models.

Overview

MATLAB is proprietary software produced by The MathWorks and requires a license to obtain, install, and activate. New versions of MATLAB are released twice a year, release names are composed of R , the year of the release and a or b . Arch Linux is not officially supported. [1]

Installation

A complete copy of the MATLAB software must be obtained before it can be installed. The MATLAB software is available to licenses holders on both a DVD and through the The MathWorks website. In addition to the software a file installation key is required for installation. It is possible to install MATLAB either with the matlab AUR package or from the MATLAB installation software directly. The advantage of the matlab AUR package is that it manages dependencies and some of the nuances of the installation process while installing directly from the MATLAB installation software can be done by regular users to their home directories.

Installing from the MATLAB installation software

The MATLAB installation software is self contained and does not require any additional packages to install in silent mode. To install with the GUI a working Xorg graphical display is necessary. Wayland is not officially supported yet, so it will run in a Xwayland session. The installation is handled by the install script. You can run the script as root to install MATLAB system-wide or your user to install it only for you.

During the installation, you are asked if you want symlinks to be created. If you did not choose to do so, you can now manually create a symlink in /usr/local/bin to make it easier to launch in terminal:

Or you could add MATLAB install path to PATH environment variable.

Desktop entry

Optionally create a desktop entry. The MIME type of MATLAB files is text/x-matlab .

Start matlab with:

  • -desktop to run Matlab without a terminal.
  • -nosplash to prevent the splash screen from showing up.

In order for icons to appear correctly StartupWMClass needs to be set in the desktop entry. To find it out start MATLAB, run xprop | grep WM_CLASS and select the MATLAB window.

Example desktop entry:

If one need to set environment variable, one could prepend env in Exec , for example, to system’s libfreetype:

One might want to use the system’s libstdc++ .

Installing from the AUR package

The matlab AUR package is designed to allow MATLAB to be integrated into and managed by Arch. Note however, that the package does not contain the installation files, and you are expected to place them in the cloned package folder yourself. It can be problematic to build the package using AUR helpers, so you are expected to do so manually. You can obtain the actual MATLAB software using the installer from the MathWorks website.

  • Clone the matlabAUR package and cd into it.
  • Download the zip file containing the MATLAB installer from MathWorks into the current directory. Extract the zip to the matlab subdirectory:
  • Run the extracted installer with:
  • The installer gives you a choice of either installing the software now or only downloading selected modules. Choose the second option. This option may also be under the «Advanced Options» dropdown menu.
  • The installer will give you an option to change the download path. You might want to change it to something temporary (like /tmp if you have big enough ram disk) as you will soon move the contents to a different location.
  • Wait for the download to finish and close the installer. Merge the downloaded archives into the extracted matlab subdirectory:
  • Then package the directory into a tarball:
  • Download your licence:Go to your MathWorks account and click on the licence number you want to use. Then, go to the Install and activate tab and select Activate to retrieve licence File. Follow the instructions and download the licence file needed for the installation. Name the file matlab.lic and place it in the AUR package directory. There will also be a File Installation Key (FIK) visible on the MathWorks website. Copy-paste it in a new file named matlab.fik and save it next to PKGBUILD just like you did with the matlab.lic .
  • Now, you will create a pacman package. You can customize the modules you want the package to contain by modifying the PKGBUILD or leave it at default:
  • Finally, use makepkg command to build and install the package:

Configuration

The MATLAB software is bundled with a JVM and therefore it is not necessary to install Java. The JVM version supported by MATLAB is listed in System Requirements & Platform Availability or simply type version -java in MATLAB. One could set the MATLAB_JAVA environment variable to use custom JVM, for example, to specify the jre8-openjdk JRE, launch MATLAB with:

OpenGL acceleration

MATLAB can take advantage of hardware based 2D and 3D OpenGL acceleration. Support for hardware acceleration needs to be configured outside of MATLAB. Appropriate video drivers need to be installed along with the OpenGL utility library glu package. If X11 forwarding is being used, the video drivers need to be installed on both the client and server. To check if MATLAB is making use of hardware based OpenGL acceleration run:

If «software rendering» is not «false», then there is a problem with your hardware acceleration. If this is the case make sure OpenGL is configured correctly on the system. This can be done with the glxinfo program from the mesa-utils package:

If «direct rendering» is not «yes», then there is likely a problem with your system configuration.

If glxinfo works but not matlab, you can try to run:

If it works, you can edit Matlab launcher script to add:

After these changes, you may see low-level graphics errors in the MATLAB console such as:

In that case, create a file with the name ‘java.opts’ in the directory where MATLAB is executed (for example /usr/local/MATLAB/R2020a/bin/glnxa64 ) with the following line:

Sound

To confirm that MATLAB is able to use the default soundcard to present sounds run:

This should play an except from Handel’s «Hallelujah Chorus.» If this fails make sure ALSA is properly configured. This can be done with the speaker-test program from the alsa-utils package:

If you do not hear anything, then there is likely a problem with your system configuration.

GPU computing

MATLAB can take advantage of CUDA enabled GPUs to speed up applications. In order to take advantage of a supported GPU install the nvidia , nvidia-utils , ocl-icd , opencl-nvidia , and cuda packages. To check if MATLAB is able to utilize the GPU run:

Install supported compilers

In order to access the full functionality of MATLAB (e.g., to use Simulink, Builder JA, and MEX-file compilation), supported versions of the gcc , g++ , gfortran , and jdk compilers must be installed. Details about the supported compilers for the current release and previous releases are available online. Many of the supported gcc , g++ , jdk compiler versions for past MATLAB releases are available from the AUR (e.g., gcc43 AUR , gcc44 AUR , gcc47 AUR , gcc49 AUR and jdk7 AUR ), while past versions of the gfortran compilers are not packaged.

To use previous versions of the the gcc , g++ , and gfortran compilers with MEX files, edit $/bin/mexopts.sh and replace all occurrences of CC=’gcc’ with CC=’gcc-4.X’ , CXX=’g++’ with CXX=’g++-4.X’ , and FC=’gfortran’ with FC=’gfortran-4.X’ , where X is the compiler version appropriate for the particular MATLAB release.

  • Newer versions of Matlab (at least 2017a) does not seem to respect the $/bin/mexopts.sh customization. Instead it uses $/bin/glnxa64/mexopts/LANG_glnxa64.xml file.
  • Though, it is not officially supported, one could still use higher version of compiler, and ignore the warnings.

Help browser

The help browser uses valuable slots in the dynamic thread vector and causes competition with core functionality provided by libraries like the BLAS that also depend on the dynamic thread vector. The help browser can be configured to use fewer slots in the dynamic thread vector with

This is a persistent change and to reverse it use

Serial port access

To successfully connect to any serial port, MATLAB expects to have write access directly to /var/lock which is not allowed on Arch Linux for security reasons. Instead of allowing this access just for MATLAB, you can work around this problem by redirecting device locking using lockdev-redirect AUR . All you have to do is executing MATLAB like this:

If you have created a .desktop file as shortcut to MATLAB, then add «lockdev-redirect» as a prefix to your «Exec mw-headline» >HiDPI and 4k

Troubleshooting

Warning: Initializing MATLAB Graphics failed

This error seems to happen on multi-monitor setups, see this forum post.

Blackscreen in help browser and livescripts

In order to use help browser and livescripts install libselinux AUR .

Static TLS errors

MATLAB has a number of libraries that have been compiled with static thread local storage (TLS) including the help browser doc and the BLAS libraries. For example,

is related to the bugs:

    for which patched libraries are available from MathWorks [dead link 2020-03-30 ⓘ] for which workarounds exist

A more general solution of recompiling glibc has also been suggested. [2]

Blank/grey UI when using WM (non-reparenting window manager)

Corrupted text and fonts in menus and fields

If you notice that the menus or the input fields are corrupted or not appearing correctly then you can try to activate the «Use antialiasing to smooth desktop fonts« option in Matlab preferences, it seems to solve the problem. Go to Preferences -> Matlab -> Fonts and activate it. You will need to restart Matlab in order to take affect.

Installation dependencies missing

Matlab might complain that it cannot find a package. Look at the package name and install it with Pacman, or in the case of x86_64 there are some libraries only in AUR. matlab AUR and matlab-dummy AUR packages contain a list of up-to-date dependencies for the newest Matlab version.

Installation error: archive is not a ZIP archive

During the installation you can get:

Matlab downloads all packages to /tmp/ directory which resides in RAM and is maximum size of half of available memory. In this case it is not enough for installation files and Matlab 2019a installer will warn you about this. If it did not, or if you ignored the warning, you will have got the above error.

You can either resize tmpfs (3,5 GB is not enough, 6 GB works), or remove packages from base install and add them later with built-in Matlab add-on installer.

Install-time library errors

  • Make sure that the symlink bin/glnx64/libstdc++.so.6 is pointing to the correct version of libstdc++.so.xx (which is also in the same directory and has numbers where ‘xx’ is). By default, it may be pointing to an older (and nonexistent) version (different value for ‘xx’).
  • Make sure the device you are installing from is not mounted as noexec
  • If you downloaded the files from Mathworks’ website, make sure they are not on an NTFS or FAT partition, because that can mess up the symlinks. Ext4 or Ext3 should work.

Hangs on rendering or exiting with Intel graphics

Some users have reported issues with DRI3 enabled on Intel Graphics chips. A possible workaround is to disable DRI3 and run MATLAB with hardware rendering on DRI2; to do so, launch MATLAB with the environment variable LIBGL_DRI3_DISABLE set to 1:

If the previous workaround does not work, the issue can be circumvented by selecting software rendering with the MATLAB command (beware, performance may be very poor when doing e.g. big or complex 3D plots):

See [3] and [4] for more.

LiveScript errors

If you get the error when attempting to load or create a LiveScript:

  • It could be because of broken symlinks of libgcrypt and other dependencies, after system updates. On the first start of the Live Editor the components are extracted and these libary symlinks are created (if not existing).
  • Also the steps in #Unable to launch the MATLABWindow application may resolve the issue.
  • It can also happen due to missing gconf package. Make sure gconfAUR is installed.
  • If the above does not help, execute in the command window

to get a more detailed error message.

  • A debugging console can be opened with

Using webcam/video device

Make sure the correct support package add-ons are installed (webcam or OS Generic Video Interface for example). If running matlab as a user, make sure your user has write permissions to wherever the support packages are being downloaded and installed.

Since MATLAB R2017a, Image Acqusition Toolbox is using GStreamer library version 1.0. It previously used version 0.10.

In general, USB Webcam Support Package does a better job working with UVC and built-in cameras than OS Generic Video Interface Support Package.

MATLAB hangs for several minutes when closing Help Browser

alt=»Tango-edit-clear.png» width=»48″ height=»48″ />This article or section needs language, wiki syntax or style improvements. See Help:Style for reference. alt=»Tango-edit-clear.png» width=»48″ height=»48″ />

Since upgrade of glibc from 2.24 to 2.25, MATLAB (at least R2017a) hangs when closing Help Browser. The issue is related to the particular version of jxbrowser-chromium shipped with MATLAB. This issue is still present with glibc 2.26 and MATLAB R2017b and R2018a.

To fix this issue, download the latest jxbrowser and replace the following jars from MATLAB:

MATLAB should automatically unpack those jars into matlab_root/sys/jxbrowser-chromium/glnxa64/chromium when first opening Help Browser. Remove matlab_root/sys/jxbrowser-chromium/glnxa64/chromium directory to make sure MATLAB uses the latest jxbrowser.

Unfortunately, this workaround does not work in R2017b anymore. Going deeper into investigation of this issue, it is related to a crash of one of jxbrowser-chromium processes. The parent process of jxbrowser-chromium then sits there and waits for response from a process that is already dead. This causes MATLAB main window to freeze. You can easily unfreeze MATLAB by manually killing all leftover jxbrowser-chromium processes.

I have come up with this simple script that uses inotify and waits for user to close Help browser in MATLAB. It triggers when user closes Help browser and sends kill signal to all leftover jxbrowser-chromium processes:

I run this script as part of my MATLAB start script like that:

To make sure that this background job is killed when I exit MATLAB, I use this in the beginning of MATLAB start script:

Some dropdown menus cannot be selected

In some interfaces — such as Simulation Data Inspector or Simulink Test Manager — nothing happens when choosing an item in dropdown menu (for example, when trying to change a number of subplots in Simulation Data Inspector). To work around this issue, hold down the Shift key while clicking the item in dropdown menu.

Not starting — licensing error

In case MATLAB will not start from a desktop environment by the call of its desktop file one should see the output as you start it from the terminal.

For a Licensing error such as:

A re-activation might solve the problem.

MATLAB crashes with «Failure loading desktop class» on startup

In case MATLAB will not start and starting it from command line gives you the following error:

and you have the option -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel set in your _JAVA_OPTIONS environment variable, start MATLAB with

If this works, add the line

to your MATLAB launcher script. Optionally re-add other Java options.

Unable to type in text fields of interfaces based on MATLABWindow

alt=»Tango-edit-clear.png» width=»48″ height=»48″ />This article or section needs language, wiki syntax or style improvements. See Help:Style for reference. alt=»Tango-edit-clear.png» width=»48″ height=»48″ />

Since R2018a, it is not possible to type text in interfaces based on MATLABWindow — like Signal Editor, Add-Ons Explorer and others. MATLABWindow and MATLAB’s webwindow infrastructure is based on Chromium Embedded Framework, and it looks like a known and long standing bug: https://bitbucket.org/chromiumembedded/cef/issues/2026/multiple-major-keyboard-focus-issues-on

One possible workaround is to switch focus from the MATLABWindow to another window and then switch back — so that you can type.

To elaborate more on this workaround (since the problem is still there in R2018b), here is what i did in my Openbox config (note that the A-Middle keybinding already exist in default config):

Now, whenever it is not possible to type in a text field, I press Alt+Mouse middle mouse and then I can type again.

This problem is critical during installation. After one clicks some elements in the installation window, he will not be able to type into any textbox anymore and switching between windows does not always work. To circumvent the issue, one shall only use key-press, instead of mouse click during installation. MATLAB installer has a poor support on Wayland, one may also consider using other WM instead during installation.

Unable to launch the MATLABWindow application

In MATLAB versions R2018b until R2022b, the installer crashes as follows:

To find out why MATLABWindow is crashing, run it manually to get detailed information.

FT_Get_Color_Glyph_Layer is a symbol of freetype2 , which indicates a library incompatibility between the MATLAB application and the Arch Linux packages. [5]

To fix this, put aside MATLAB’s libfreetype.so* .

You can also use LD_PRELOAD environment variable to force MATLAB use Arch Linux’s libfreetype without removing the lib file.

Similarly, if the error is caused by undefined symbol: g_log_structured. , put aside MATLAB’s libglib-2.0.so* . If the error is caused by path to/libstdc++.so.6: version `CXXABI_1.3.9′ not found (required by _somelibrary_) , put aside MATLAB’s libstdc++.so.6 .

Cannot verify university login during installation

For total headcount license users, MATLAB will pop-up a window asking the user to login with their credentials in a web browser. However, if run with sudo , most browsers (especially chromium) will not run. To circumvent this problem, one shall ‘active the computer’ through MATLAB’s website using a browser by a normal user. See this issue

Missing libcrypt.so.1

If you get this error when launching or installing MATLAB (R2020a and later), install libxcrypt-compat .

Running installer as root does not launch the GUI

If you run the installer as root and the GUI does not appear (but does appear without launching as root), try temporarily allowing the root user to access the X Server by running the following commands in order (where ./install is the command to run the installer as root):

Note that the last command should be executed upon finishing the installation process, and localuser is a string literal. See this support answer, and xhost(1) .

In addition, verify that the DISPLAY environment variable is set.

An alternative is to install MATLAB as a local user.

GUI installer is unable to create the target folder when installing as user

Make the folder manually (as root), and take ownership. The path is typically /usr/local/MATLAB

MATLAB crashes when opening Simulink

When running from terminal the error message is:

MATLAB cannot open or create script files

Calls to mex fail

If calls from MATLAB or Simulink to mex (e.g. rapid accelerator) fail with the error *.mexa64 is not a MEX file , even though the resulting file is usable, it may help to edit in either matlab/bin/ or

/.matlab7rc.sh by changing the LDPATH_PREFIX variable from its empty default: [6]

Incompatibilities with some python libraries using MKL

Some python code running inside matlab may fail with an error mentioning Parameter * was incorrect on entry to . This can be avoided by calling

directly before any calls to py and after calls to pyenv . See this support answer.

Settings not persisting between MATLAB restarts

In some cases on recent Arch systems matlab is unable to export .mlsettings files, preventing toolbox and some matlab settings from being saved to disk and persisted. These cases come from matlab trying to hard link new files from /tmp directly to the preferences directory (usually

/.matlab/release where release is the matlab version, e.g. R2021b ). As a workaround, run matlab with the $TMPDIR environment variable set to a folder on the same file system as the preferences directory. [7]

«Unable to open this file in the current system configuration»

The error can be fixed by setting aside the l ibfreetype.so.6 in matlab_root/bin/glnxa64/ . You may run the following command:

Symbols in toolstrip menus are not diplayed properly

alt=»Tango-view-fullscreen.png» width=»48″ height=»48″ />This article or section needs expansion. alt=»Tango-view-fullscreen.png» width=»48″ height=»48″ />

This issue can be fixed by installing noto-fonts .

MATLAB in a systemd-nspawn

MATLAB can be run within a systemd-nspawn container to maintain a static system and avoid the library issues that often plague matlab installs after significant updates to libraries in Arch. Refer to Systemd-nspawn for detailed information on setting up such containers.

The following instruction is to get a MATLAB R2021b installation running in a minimal Debian 11 environment. It assumes MATLAB is already installed as normal in «/usr/local/MATLAB/R2021b».

Use Xhost to allow the nspawn environment to use the existing X server instance, see also Systemd-nspawn#Use an X environment.

Create a minimal Debian environment in a directory («deb11» here) with:

Set a password for the root user and create regular user:

and then boot the environment with:

«mesa-utils» and dependencies needs to be installed to support graphics acceleration. «usbutils» can be installed to support usb interfaces for I/O with MATLAB.

Install the matlab-support (from contrib source) package in the environment for some convenient integration.

MATLAB can be launched from within the environment normally by using the binary at matlab_root/bin .

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *