You are on page 1of 6

1/21/2016

Install Matlab in linux - Linux Mint Community

They offer different flash templates with latest features.

community.linuxmint.com
The website for all Linux Mint users
Home
Community
Ideas
Tutorials
Hardware
Software
Countries
Users
Moderation
Chat room
Testing
ISO Images
Teams
Login
Username
Password
Remember me
Forgot password
Login Register
Back
Written by:
jahid_0903014

Score: 2
votes: 9
Format: Article

Install Matlab in linux


You need to have the unix version of Matlab dvd or dvd image to install it in linux mint.

Two different approaches are going to be adopted:


http://community.linuxmint.com/tutorial/view/1493

1/6

1/21/2016

Install Matlab in linux - Linux Mint Community

1. If you are the only user who will use matlab then follow the first step (#1).
2. If there are several users who will use matlab with several user accounts then follow second step (#2).

#1. installing in home directory:


installing matlab in /usr/local (explained in the second section of this tutorial) is troublesome and
requires root permission in several steps. installing it in the home directory is the easiest way.
just follow the steps below:
1. mount the iso (better use furiusisomount)
2. go to the newly mounted volume
3. right click mouse and select 'open in terminal' & enter the command ./install
or
3. double click on the 'install' file and select 'run in terminal' .
4. Now a matlab installation window will appear. go through the general processes like 'next' , 'accept',
check 'install without internet', put your license key where it is needed.
5. When matlab installation folder selection window appears erase all the text in the text box and put
/home/Your_user_name/Matlab and continue . (the default path is /usr/local/Matlab/Rxxx, don't use it)
6. Now everything will go smooth, brows your lic_standalone.dat file when needed.
7. after completing the installation enter the following code into terminal:
sudo ln -s /lib/i386-linux-gnu/libc.so.6 /lib/libc.so.6
this is for a warning that libc.so.6 can not be found.
Now matlab is installed in /home/user/Matlab directory.

run Matlab:
go to the home/user/Matlab/bin directory and double click on matlab and 'select run in terminal' or enter
command in terminal:
/home/user/Matlab/bin/matlab
here user = your user name
or, to run from the menu, follow these steps:
1. in the terminal enter this code:
sudo gedit /usr/share/applications/matlab.desktop
2. copy paste the following lines into the newly opened .desktop file
http://community.linuxmint.com/tutorial/view/1493

2/6

1/21/2016

Install Matlab in linux - Linux Mint Community

[Desktop Entry]
Exec=/home/user/Matlab/bin/matlab -desktop
Icon=/home/user/Matlab/X11/icons/matlab64c_icon.xpm
Type=Application
Comment=Matrix Laboratory
Name=Matlab
Categories=Development;
user will be replaced by your user name. (must).
For Exec and Icon, the path should be correct i.e you must change "user" according to your path. (must).
in "Name= Matlab " you can change the name whatever you want.(optional).
in "GenericName" you can put whatever you want. you can cut off this line too.(optional).
save & exit the .desktop file.
a new entry named "Matlab" will be added in the menu under the programming section.
3. now go to menu->programming->Matlab.
Enjoy... your Matlab environment....

#2. installing in /usr/local directory:


if there are several users in a single pc & each of them has individual user accounts and need to use the
same application then it is required to install it in the directory indicated by default in matlab installation
process i.e in /usr/loal
steps:
1. mount the iso (with furiusisomount). if you already have the contents of the iso copied elsewhere then
skip this step.
2. create a directory /home/user/matlab.(it's temporarilly, after installation this can be deleted.)
run in terminal (to create the directory):
mkdir /home/user/matlab
user=your user name.
copy the contents of the iso (archives, bin, etc, java, sys, install,.........) in your /home/user/matlab folder.
If you want to avoid copying, then mount the iso with this command:
sudo mount -o loop path_to_the_iso_file_matlabxxx.iso /mnt
then
cd /mnt
http://community.linuxmint.com/tutorial/view/1493

3/6

1/21/2016

Install Matlab in linux - Linux Mint Community

sudo ./install
now you can skip the next step(3) and after finishing the installation clear the mnt directory with sudo umount /mnt

3. run these commands in terminal:


sudo chmod 777 -R /home/user/matlab
cd /home/user/matlab
sudo ./install
here user=your user name.
4. now the installation gui will be run. go through the processes as, it is known how to install it from a gui
(explained a little in section #1).
5. after installation run this code:
sudo ln -s /lib/i386-linux-gnu/libc.so.6 /lib/libc.so.6
this fixes a warning that libc.so.6 can not be found.

to run Matlab:
go to the /usr/local/MATLAB/R2011b/bin/ directory and double click on matlab and 'select run in
terminal' or enter command in terminal:
/usr/local/MATLAB/R2011b/bin/matlab
or, to run from the menu, follow these steps:
1. in the terminal enter this code:
sudo gedit /usr/share/applications/matlab.desktop
2. copy paste the following lines into the newly opened .desktop file
[Desktop Entry]
Exec=/usr/local/MATLAB/R2011b/bin/matlab -desktop
Icon=/usr/local/MATLAB/R2011b/X11/icons/matlab64c_icon.xpm
Type=Application
Comment=Matrix Laboratory
Name=Matlab
Categories=Development;
in "Name= Matlab " you can change the name whatever you want.(optional).
in "GenericName" you can put whatever you want. this line can be cut off too.(optional).
save & exit the .desktop file.
a new entry named "Matlab" will be added in the menu under the programming section.
http://community.linuxmint.com/tutorial/view/1493

4/6

1/21/2016

Install Matlab in linux - Linux Mint Community

3. now go to menu->programming->Matlab.
Enjoy... your Matlab environment....
the above process was tested on Matlab R2011b. other version should work too.
Tags: install Matlab,matlab,matlab in linux
Created: 2 years ago.
Last edited: 1 year ago.
Reviewed: 2 years ago.
Read 0 times.
Comments
may be you didn't run the installer with sudo.
you should run it with :
sudo ./install
complete method for you:
mount the iso with this command
sudo mount -o loop path_to_the_iso_file_matlabxxx.iso /mnt
1 year ago

jahid_0903014 then

cd /mnt

1 year ago

1 year ago

Rboggyz

sudo ./install
after install finishes, unmount it with
sudo umount /mnt
I've mounted the image,I ran the installer in terminal and got this:
Preparing installation files ...
Installing ...
cp: cannot create regular file
/usr/local/MATLAB/R2013a/licenses/license.lic: Permission denied
cp: cannot create regular file /usr/local/MATLAB/R2013a/Matlab.png:
Permission denied
chmod: changing permissions of /usr/local/MATLAB/R2013a/Matlab.png:
Operation not permitted
cp: cannot create regular file /usr/local/MATLAB/R2013a/Matlab.desktop:
Permission denied
chmod: changing permissions of
/usr/local/MATLAB/R2013a/Matlab.desktop: Operation not permitted
Finished
Can I have some help, please??

If you don't want to read the whole thing then go here:


jahid_0903014 http://forums.linuxmint.com/viewtopic.php?f=42&t=165811

Other tutorials from jahid_0903014


Installing softwares in linux
http://community.linuxmint.com/tutorial/view/1493

5/6

1/21/2016

Install Matlab in linux - Linux Mint Community

Share internet from Linux to windows with squid3 proxy server


How to install & use Avro Bangla keyboard in linux
Connecting Realtek wireless modems in linux
Type in your native language in Linux Mint
install latest eclipse in linux mint
Adding new item in the menu
Connecting Zoom Ultra modem in Linux Mint
install latest Netbeans (7.4) in Linux mint
Editing fstab to automount partitions at startup
System Backup: A manual approach
Share internet from your linux distro to your android phone
Full system upgrade to a newer release without fresh install
Dim laptop monitor immediately after the laptop being unplugged
How to install or uninstall kernel in linux
How to customize Linux Mint live cd/dvd
How to install Mediatek MT7630E wireless LAN driver in Linux Mint/Ubuntu
Installing Teletalk Flash Modem in Linux Mint/Ubuntu
Installing Unreal Engine in Linux Mint/Ubuntu
How to make a self-extracting shell script from a TAR archive
Linux Mint | Blog | Forums
Copyright 2014. All Rights Reserved.

http://community.linuxmint.com/tutorial/view/1493

6/6

You might also like