Как установить matlab на ubuntu

Foodband

Как установить matlab-support в Ubuntu / Debian

Для установки matlab-support в Ubuntu / Linux Mint / Debian, введите в Терминал :

matlab-support — интеграция дистрибутивов для локальных установок MATLAB

Подробная информация о пакете:

Интеграция дистрибутивов для локальных установок MATLAB

Зависимости:

Система управления конфигурацией Debian

Система управления конфигурацией Debian (C-реализация)

Предоставлять ограниченные привилегии суперпользователя определенным пользователям

Установка MATLAB 2017a на Ubuntu [dубликат]

Запустите это в терминале, если вы получите какие-либо ошибки, добавьте их на вопрос:

sudo aticonfig —set-pcs-u32=DDX,EnableTearFreeDesktop,1

8 ответов

Важная подсказка: мастер установки MATLAB может застревать, создавая каталог установки (по умолчанию /usr/local/MATLAB/R2016a), поскольку он не имеет достаточных разрешений на запись. Если это произойдет, простое решение — запустить установщик Matlab в качестве суперпользователя

. Полезная статья, касающаяся этой проблемы, в частности, приведена здесь: Как получить разрешения на папку в процессе установки?

Важная подсказка: мастер установки MATLAB может застревать, создавая каталог установки (по умолчанию /usr/local/MATLAB/R2016a), поскольку он не имеет достаточных разрешений на запись. Если это произойдет, простое решение — запустить установщик Matlab в качестве суперпользователя

. Полезная статья, касающаяся этой проблемы, в частности, приведена здесь: Как получить разрешения на папку в процессе установки?

Introduction

MATLAB® is a high-level language and interactive environment that enables you to perform computationally intensive tasks faster than with traditional programming languages such as C, C++, and Fortran.

You can use MATLAB in a wide range of applications, including signal and image processing, communications, control design, test and measurement, financial modeling and analysis, and computational biology. Add-on toolboxes (collections of special-purpose MATLAB functions, available separately) extend the MATLAB environment to solve particular classes of problems in these application areas.

MATLAB provides a number of features for documenting and sharing your work. You can integrate your MATLAB code with other languages and applications, and distribute your MATLAB algorithms and applications.

MATLAB R2014b on Ubuntu 14.04

From ISO

  • First, mount the .iso file of the image with right-click, Open with and select Disk image mounter (if required).
  • Open a terminal and change to the mounted image file. For example:
  • cd /media/username/MATHWORKS_R2014A

From Download

Install

  • Run the installer as a super user
  • sudo ./install
  • sudo apt-get install matlab-support

Now Matlab should also be launchable through unity and should work as intended.

MATLAB R2012a

Important Note Regarding Ubuntu 12.04

MATLAB R2012a was released on March 1, 2012. Please note that this is prior to the release of Ubuntu 12.04. Consequently Ubuntu 12.04 is not a supported operating system for MATLAB R2012a as it can be seen in the MATLAB Roadmap.

MATLAB R2012a users are strongly encouraged to install R2012a on Ubuntu 10.04 LTS or Ubuntu 10.10 for best results. Help for the installation of MATLAB R2012a on Ubuntu 12.04 will however be given through this tutorial.

Important Note Regarding Student version (32-bit)

Unfortunately, 32-bit is the only version available to students.

If you have a 64-bit system, you will have some trouble but it is normally possible to go through each of them and the details are in the Troubleshooting section.

The following helps you be a length ahead of these problem. If you have a 64-bit system, you can still install 32-bit version of MATLAB. However, you will need to install the "ia32-libs" package before the installation. If you have Ubuntu 13.10 or later, check out this thread for more information.

Once it is installed, run the installer with the -glnx86 argument to force it to use 32-bit

Though for R2012a it is not necessary anymore. If you don’t run it with the -glnx86 argument, MATLAB will just say

at the start of the installation. And it will use 32-bit.

Then, just follow the instructions of the Installation Instructions section.

After the installation, you will need to run MATLAB with the -glnx86 argument to force it to use 32-bit

See the Troubleshooting section for more details on this.

Installation Instructions

Basic

See the Troubleshooting section if you get into trouble during the installation.

1. Run the MATLAB installer with the following Terminal command (The -v argument is for the install script to be verbose which means, it is more likely to warn you if something weird happens):

If it complains about java, try installing install »OpenJDK Java 6» package because MATLAB is not compliant with Java 7.

2. When prompted to ‘Choose installation type‘ you should select custom. This will allow you to create symbolic links to MATLAB in /usr/local/bin.

Foodband

Choose installation type

3. When prompted to ‘Specify installation folder‘ it is recommended that you use the default folder /usr/local/MATLAB/R2012a (or the default /usr/local/MATLAB/R2012a_student if you have a student version).

Specify installation folder

If you have a student version, the default folder will be /usr/local/MATLAB/R2012a_Student.

4. When given the option to ‘Create symbolick links to MATLAB scripts in:‘ it is recommended that you check the box and use the supplied path /usr/local/bin.

Create symbolick links to MATLAB scripts in:

5. You can check that your installation work by executing the following command

See the Troubleshooting section if you get errors.

Create A MATLAB Launcher/shortcut

Automatic option: install package "matlab-support", sudo apt-get install matlab-support or via the Software Center on the dashboard.

Manual option as follows.

2. Get the launcher file:

If you have the student version of MATLAB (or simply the 32 bit version) on a 64 bit system, you will need to modify this file. Run

Then uncomment #Exec=matlab -arch=glnx86 -desktop and comment Exec=matlab -desktop (by adding or removing the # character).

If you get two MATLAB launcher icons in your Unity laucher, try uncommenting the following line in /usr/share/applications/matlab.desktop:

If your launcher does not work, see the Troubleshooting section.

MEX functions

Warning

The content of this section has been written for R2011a with Ubuntu 10.04 and 10.10. It may vary a lot if you are using the R2012a with Ubuntu 12.04.

If you try to compile MEX functions you may see a message like the following:

Note this is a warning — the MEX function will still compile.

The following instructions will setup gcc 4.3 and make it the default compiler for MATLAB:

2. Make a MATLAB specific bin directory for gcc symlink.

3. Symlink gcc to gcc-4.3 via user MATLAB specific bin directory.

4. Add MATLAB specific bin directory to the front of your system $PATH within your local startup.m file.

  • 3a. At the MATLAB Command Window prompt, type:

and choose option 2 which says:

  • 4a. Then edit this local file:

and replace all instances of CC='gcc' to CC='gcc-4.3', CXX='g++' to CXX='g++-4.3', and FC='gfortran' to FC='gfortran-4.3'. Save and exit. The next time you run MEX in MATLAB to compile it will work properly.

For more ideas, try this thread or this one.

Troubleshooting

No MATLAB bin directory for glnxa64

If MATLAB tells you

when you launch it, you will need to force it to use glnx86.

Solution for the command line (CLI) launch

If you like launching MATLAB from the command line, you will maybe find it inconvenient to write -glnx86 each time you need to launch it. You can then add it in your

/.bashrc (at the end if you hesitate where to put it)

Solution for the graphical (GUI) launch

You will need to add the -glnx86 argument to matlab in the exec line of your file /usr/share/applications/matlab.desktop If you have followed the ‘Create a MATLAB Launcher’ section, you can just comment the line with the argument -glnx86 and uncomment the next line as explained in the file.

libc.so.6 not found

If you have Ubuntu 12.04 you like get the following error when running Matlab graphically:

Foodband

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

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