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

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

  • автор:

Instrukcja instalacji oprogramowania „Matlab” — linux¶

  1. Otwórz stronę Mathworks.com
  2. Wybierz kraj lub zamknij okno komunikatu. alt text
  3. Kliknij ikonę awatara w celu zalogowania się. alt text
  4. W oknie logowania wybierz opcję „Create one!” . alt text
  5. Wprowadź adres email w domenie @pb.edu.pl, @student.pb.edu.pl lub @doktoranci.pb.edu.pl oraz podaj pozostałe informacje. alt text
  6. Sprawdź swoją pocztę a następnie kliknij w link aktywacyjny znajdujący się w otrzymanym emailu. alt text
  7. W celu aktywacji konta naciślij klawisz „ Verify email”. alt text
  8. Teraz uzupełnij dane na swoim koncie. Jako nazwę uczelni podaj „ Politechnika Bialostocka”. Zamiast litery „ł” wstaw „l”. Następnie zaakceptuj warunki usługi i naciśnij klawisz „Create”. alt text
  9. Po zakończeniu procesu rejestracji otrzymamy komunikat o przydzieleniu licencji. alt text
  10. Teraz możesz już zacząć używać Matlaba online za pomocą przeglądarki lub pobrać i zainstalować program na swoim komputerze. W tym celu wybierz opcję „Install MATLAB” a następnie wybież opcję „Linux”.

alt text

  1. Rozpakuj pobrany plik a następnie uruchom konsolę i przejdź do rozpakowanego katalogu.
  2. Uruchom jako sudo komendę ./install

alt text

  1. Zaloguj się na swoje konto na platformie Mathworks.com

alt text

  1. Zaakceptuj warunki licencji i naciśnij przycisk „Next”

alt text

  1. System powinien rozpoznać przydzieloną tobie licencję. Naciśnij przycisk „Next”.

alt text

  1. Teraz podaj nazwę używaną przez ciebie w twoim lokalnym systemie operacyjnym. Nazwa ta musi być zgodna z nazwą widoczną w punkcie 11 tej instrukcji. W tym przypadku zastosowano nazwę „user”. Następnie naciśnij przycisk „Next”.

alt text

  1. Wskaż folder docelowy lub pozostaw bez zmian.

alt text

  1. Wybież programy do zainstalowania. Matlab wymaga pobrania 1,4 GB danych. Wszystkie programy to łącznie około 15 GB danych.

alt text

  1. Zaznacz opcję Create symbolic links . Następnie naciśnij przycisk „Next”.

alt text

  1. Potwierdź instalację naciskając klawisz: Begin install

alt text

  1. Po pobraniu i automatycznej instalacji powinien pojawić się komunikat: „ Installation complete”. Możesz zamknąć instalator klawiszem „Close”

alt text

  1. Teraz możesz już uruchomić program. W systemie Ubuntu nie jest automatycznie twożony skrót do programou Matlam. Program możesz uruchomić w terminalu, podając komendę matlab.

alt text

  1. Uruchomienie oprogramowania poprzedane jest wyświetleniem okna informującego o zainstalowanej wersji.

alt text

W razie jakichkolwiek pytań proszę o kontakt: Uczelniane Centrum Informatycze Email: licencjepb@pb.edu.pl

Документация

Просмотреть поддерживаемый Linux ® распределения, выберите вкладку Linux на Системных требованиях для MATLAB.

Запустить MATLAB ® на платформах Linux ввести matlab в подсказке операционной системы. Если вы не настраивали символьные ссылки в процессе установки, то введите matlabroot /bin/matlab matlabroot имя папки, в которой вы установили MATLAB. Чтобы видеть папку, ввести matlabroot .

После стартового MATLAB открывается рабочий стол. Настольные компоненты, которые были открыты, когда вы в последний раз закрываете MATLAB, вновь открылись. Если DISPLAY переменная окружения не установлена или недопустима, затем рабочий стол не отображается.

MATLAB автоматически добавляет userpath папка к пути поиска файлов.

Чтобы настроить запуск, смотрите, Задают опции запуска.

Папка запуска MATLAB является папкой, вы находитесь в том, когда вы получаете подсказку MATLAB. Чтобы изменить папку запуска по умолчанию, смотрите Папку Запуска MATLAB.

Если вы испытываете затруднения стартовый MATLAB, то смотрите MATLAB Installation, Activation & Startup Help.

Запущение папки

На платформах Linux папка запуска по умолчанию является папкой, с которой вы запустили MATLAB.

Задавать userpath как папка запуска, установленная значение переменной окружения MATLAB_USE_USERWORK к 1 перед запуском. По умолчанию, userpath userhome /Documents/MATLAB . Задавать другую папку для userpath , и для других опций, вызовите MATLAB userpath функция.

Выполните СКРИПТ MATLAB от удаленного ssh Вход в систему

Выполнить hello.m скрипта MATLAB через удаленный вход в систему ssh, в типе окна терминала:

ssh local.foo.com matlab -nodisplay -nojvm < hello.m

ssh команда передает по каналу hello.m к MATLAB, работающему на удаленном хосте local.foo.com . -nodisplay опция запускает MATLAB без рабочего стола.

Смотрите также

Похожие темы

  • Определение опций запуска
  • Папка запуска MATLAB
  • MATLAB Installation, Activation & Startup Help

MatLab

MatLab (https://www.mathworks.com/products/matlab.html) — коммерческая программа, система компьютерной математики для инженерных и научных расчетов. Это программное обеспечение надо купить у https://www.mathworks.com/, а потом зарегистрироваться на официальном сайте для получения файла лицензии. Также есть возможность загрузить ознакомительную версию на 30 дней.

Установка

На примере ознакомительной версии MatLab

Загрузка

Загрузить MatLab с сайта разработчика:

  1. На странице https://ch.mathworks.com/products/get-matlab.html?s_tid=gn_getml нажать кнопку «Download a Trial»: Загрузка MatLab
  2. В открывшемся окне ввести адрес электронной почты и нажать кнопку «Continue»: Загрузка MatLab
  3. Заполнить регистрационную форму: Загрузка MatLab На почту, указанную в форме, должно прийти письмо для подтверждения учетной записи. Подтвердите учетную запись, перейдя на сайт по ссылке, заполните поля регистрации на сайте.
  4. Заполнить форму для загрузки MatLab: Загрузка MatLab
  5. Перейти на страницу скачивания дистрибутива, выбрать интересующую вас версию MatLab, например, MatLab Essentials: Загрузка MatLab
  6. Выбрать для скачивания версию для Linux: Загрузка MatLab

Установка

Запустить установку, выполнив под рутом из папки с распакованным архивом команду:

./install 

Процесс установки разделён на шаги:

  1. Запрос учетной записи от сайта https://www.mathworks.com: Установка MatLab — шаг 1
  2. Для установки необходимо принять пользовательское соглашение.
  3. Выбор лицензии: Установка MatLab — Выбор лицензии
  4. Выбор папки установки (по умолчанию /usr/local/MATLAB/R2020b/ ): Выбор папки установки
  5. Выбор необходимых пакетов для установки: Установка MatLab — шаг 5
  6. Выбор опций установки. Следует отметить пункт «Create symbolic links to MATLAB scripts» («Создать символические ссылки на сценарии MATLAB»): Установка MatLab — шаг 6 Это позволит запускать MatLab, набрав команду matlab .
  7. Подтверждение параметров установки программы. Здесь следует обратить внимание на требуемый объем на диске для установки системы: Установка MatLab — шаг 7
  8. Установка.
  9. Завершение установки.

Запуск

Если на 6 шаге установки были созданы символические ссылки, то MatLab можно запустить выполнив команду matlab .

Можно также создать значок запуска программы, например, на рабочем столе:

How do I install on Ubuntu?

I am a novice Ubuntu user, I know how to use Terminal. I am trying to install MATLAB 2020a on my Ubuntu machine, I have downloaded the Linux Installer which is a zip folder. What do I do from here? Thanks!

1 Comment

Haoran Zhu on 20 Jul 2021

Direct link to this comment

Cancel Copy to Clipboard

Direct link to this comment

Cancel Copy to Clipboard
help me solve the problem.

Answers (3)

Karim Ghezali on 9 May 2020

Direct link to this answer

Cancel Copy to Clipboard

Direct link to this answer

Cancel Copy to Clipboard
How to install MATLAB R2020a on ubuntu

  • Download the Matlab installer file
  • Unzip the installer file using this command:

unzip -X -K matlab_R2020a_glnxa64.zip -d matlab_2020a_installer

  • Open the matalab_2020a_installe r folder and open a terminal
  • use your terminal as root using the following command :
  • type your password then :

sudo ./install
Now the MATLAB Installer is on, sign in, follow the steps and choose the product that you need

Be sure to run the installer as root that will allow matlab to write in /usr/local/MATLAB/R2020a folder

Using only the sudo command can cause this error message :
$ sudo ./install
No protocol specified
terminate called after throwing an instance of '(anonymous namespace)::DisplayError'
what(): No display available.

26 Comments

Sudipto Ghosh on 3 Sep 2020

Direct link to this comment

Cancel Copy to Clipboard

Direct link to this comment

Cancel Copy to Clipboard
Thanks. Really helpful!
Hamza Shaikh on 7 Sep 2020

Direct link to this comment

Cancel Copy to Clipboard

Direct link to this comment

Cancel Copy to Clipboard
Jacob Sandler on 11 Sep 2020

Direct link to this comment

Cancel Copy to Clipboard

Direct link to this comment

Cancel Copy to Clipboard
Running the
sudo ./install
line returns
sudo: ./install: command not found
How can I remedy this?
Stefan Schwarze on 15 Sep 2020

Direct link to this comment

Cancel Copy to Clipboard

Direct link to this comment

Cancel Copy to Clipboard
if "sudo su" is executed before, only "./install" is sufficient
Raul Foronda on 10 Oct 2020

Direct link to this comment

Cancel Copy to Clipboard

Direct link to this comment

Cancel Copy to Clipboard

I runned the commands and received that the instalation was successfully completed, but didn't find the program on my computer. How can I fix this ?

Carlos Reiakvam on 13 Oct 2020

Direct link to this comment

Cancel Copy to Clipboard

Direct link to this comment

Cancel Copy to Clipboard
sudo apt install matlab-support
This helped me alot after my installation
Karim Ghezali on 13 Oct 2020

Direct link to this comment

Cancel Copy to Clipboard

Direct link to this comment

Cancel Copy to Clipboard
To run Matlab you will not found it on your desktop
Open your terminal :

  • Go to this folder using :

cd /usr/local/MATLAB/R2020a/bin

  • Then open matlab :

Floriana Vasile on 3 Nov 2020

Direct link to this comment

Cancel Copy to Clipboard

Direct link to this comment

Cancel Copy to Clipboard

if you go on the Ubuntu Software center you will find Matlab. It doesn't install Matlab, but once installed you will finally have your icon to click (there will be few steps to ''configure'' it).

If it doesn't work open the terminal with ctrl + shift + t and then just write matlab. It is very useful, since if matlab doesn't respond you can also just close the terminal to close it!

Md Shahid Ansari on 27 Jan 2021

Direct link to this comment

Cancel Copy to Clipboard

Direct link to this comment

Cancel Copy to Clipboard

I tried to follow the steps after rooting, sudo ./install shows error " error while loading shared libraries:file too short"

how can I resolve this problem?
Trying to install in ubuntu 16.04 R2020a matlab version.
Shubham Vermani on 1 Mar 2021

Direct link to this comment

Cancel Copy to Clipboard

Direct link to this comment

Cancel Copy to Clipboard
before unzipping the file
Brian Derstine on 17 May 2021

Direct link to this comment

Cancel Copy to Clipboard

Direct link to this comment

Cancel Copy to Clipboard
For whatever reason, this answer did not work.

I ran sudo su for the unzip command to avoid error messages related to the options -X -K but received the No protocol specified error when attempting to run sudo ./install as root.

If instead, I exit out of sudo and run sudo ./install as my user, the install just works. I believe this has something to do with the root user not being able to launch the installer GUI i.e., No display available .

One additional step might be to create the destination installation directory: sudo mkdir /usr/local/MATLAB/R2021a (or whatever version) prior to running the install.

Sunreeta Bhattacharya on 18 May 2021

Direct link to this comment

Cancel Copy to Clipboard

Direct link to this comment

Cancel Copy to Clipboard

You can create a desktop shortcut icon launcher to open matlab by defining the path to launch. If you installed it to the usr folder the path will look like: /usr/local/MATLAB/R2020a/bin/matlab -desktop

Ahmad Bayhaqi on 16 Aug 2021

Direct link to this comment

Cancel Copy to Clipboard

Direct link to this comment

Cancel Copy to Clipboard
I have tried to install matlab R2021a version following this code.
However, I got warning like this :
GLIBC_2.14 is not found.
What should I do then?
Ahmad Abuaish on 22 Sep 2021

Direct link to this comment

Cancel Copy to Clipboard

Direct link to this comment

Cancel Copy to Clipboard

I am installing MATLAB 2021b prerelease. When I am in su, the install program won't run, i.e., the installation gui won't launch and the terminal would halt. However, when login as a user, the install program would run and installation gui would appear, but I get the root permission error. I could choose a different directory. But I think I should stick the defualt directory.

So, how can I get the install program to run in su mode? I even tried sudo ./install when I was in user mode.

Kind regards, and I look forward to hearing from any one.
Yantong Wang on 23 Sep 2021

Direct link to this comment

Cancel Copy to Clipboard

Direct link to this comment

Cancel Copy to Clipboard
Same problem with Ahmad. by the way, my OS is ubuntu 20.04.
Satheesh S on 23 Sep 2021

Direct link to this comment

Cancel Copy to Clipboard

Direct link to this comment

Cancel Copy to Clipboard
Same problem with Yantong and Ahmad
Shiro Hirano on 26 Sep 2021

Direct link to this comment

Cancel Copy to Clipboard

Direct link to this comment

Cancel Copy to Clipboard

Same problem with the above three for LinuxMint 20.2, although I was able to install R2020a and R2021a to /usr/local/MATLAB/.

Fabiano Baroni on 27 Sep 2021

Direct link to this comment

Cancel Copy to Clipboard

Direct link to this comment

Cancel Copy to Clipboard
Same problem here. What is the recommended solution? Running it with gksudo could be a good option?
Álvaro F. López de Quadros on 5 Oct 2021

Direct link to this comment

Cancel Copy to Clipboard

Direct link to this comment

Cancel Copy to Clipboard

If installation GUI doesn't launch, it could very well be that MATLAB is not being able to access the X Server. Run:

xhost +SI:localuser:root
sudo ./install
Karnbir Saini on 5 Oct 2021

Direct link to this comment

Cancel Copy to Clipboard

Direct link to this comment

Cancel Copy to Clipboard
@Álvaro F. López de Quadros the xhost command solved my issue. Thanks!
Nicholas William Chai on 12 Oct 2021

Direct link to this comment

Cancel Copy to Clipboard

Direct link to this comment

Cancel Copy to Clipboard
@Álvaro F. López de Quadros Yes, the xhost solved the issue.
yogesh nijsure on 11 Nov 2021

Direct link to this comment

Cancel Copy to Clipboard

Direct link to this comment

Cancel Copy to Clipboard
@Álvaro F. López de Quadros , xhost command solved my issue.
Kristan Sears on 21 Dec 2021

Direct link to this comment

Cancel Copy to Clipboard

Direct link to this comment

Cancel Copy to Clipboard

Hello, I'm a novice user of both Matlab and Linux, but most of my Matlab experience has been on Windows 7, 10. When I try to install on Kubuntu 20.10, I get this error:

.. $ sudo ./install

/home//Documents/Matlab/matlab_R2021b_glnxa64/bin/glnxa64/MathWorksProductInstaller: error while loading sh

ared libraries: /home//Documents/Matlab/matlab_R2021b_glnxa64/bin/glnxa64/libicudata.so.67: file too short

JOONSOO YOO on 24 May 2022

Direct link to this comment

Cancel Copy to Clipboard

Direct link to this comment

Cancel Copy to Clipboard
@ Álvaro F. López de Quadros Thanks, it solved my issue as well
Sébastien MAILFERT on 4 Jul 2022

Direct link to this comment

Cancel Copy to Clipboard

Direct link to this comment

Cancel Copy to Clipboard
MAMATHA YADAVALLI on 28 Dec 2022

Direct link to this comment

Cancel Copy to Clipboard

Direct link to this comment

Cancel Copy to Clipboard

While installaing matlab in ubunru i am geeting below error.Please help me to install.

William Rolen on 26 Oct 2020

Direct link to this answer

Cancel Copy to Clipboard

Direct link to this answer

Cancel Copy to Clipboard

You dont actually have to install it to root. You can just install to your home directory. I would actually prefer this way, particularly if you work on a cluster.

2 Comments

Mahmod Karndash on 22 Jun 2022

Direct link to this comment

Cancel Copy to Clipboard

Direct link to this comment

Cancel Copy to Clipboard
I have ubuntu18.04 in wsl2 how install matlab r2018a step by step please help
I tried but I do not Succeed
root@DESKTOP-SMROJT0:~/softwares/R2018a# sudo ./install
Preparing installation files .
Installing .
root@DESKTOP-SMROJT0:~/softwares/R2018a# xhost +SI:localuser:root
localuser:root being added to access control list
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 109 (X_ChangeHosts)
Value in failed request: 0xe
Serial number of failed request: 7
Current serial number in output stream: 9
root@DESKTOP-SMROJT0:~/softwares/R2018a# sudo ./install
Preparing installation files .
Installing .
root@DESKTOP-SMROJT0:~/softwares/R2018a#
Mahmod Karndash on 22 Jun 2022

Direct link to this comment

Cancel Copy to Clipboard

Direct link to this comment

Cancel Copy to Clipboard
root@DESKTOP-SMROJT0:~/softwares/R2018a# sudo ./install
Preparing installation files .
Installing .
the installer does not launch and MATLAB is not installed.
please help
Samuel Gray on 25 May 2021

Direct link to this answer

Cancel Copy to Clipboard

Direct link to this answer

Cancel Copy to Clipboard

The basic problem is that "Linux Matlab" was initially only compatible with RedHat based Linux and has gained compatibility with Debian-based Ubuntu over time.

https://www.mathworks.com/support/requirements/matlab-system-requirements.html

To install the older RH based Matlab on Ubuntu you have to go into the distribution tree and run an "alternate" installer. Look at the readme files which will show how to do this. Look for the section that has to do with the GUI failing to launch.

The later versions are compatible with Ubuntu and as such an upgraded version should not have this problem. So now you just have to worry about what version of Linux to run as there are definite advantages to each.

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

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