How to install Matlab 7 R14 for Linux .
aboSamoor | June 18, 2007 | 7:22 pmAll new Linux people are worrying about being productive with Linux, as an engineer Matlab is a program that can eliminate most of my technical computational needs. the first time i downloaded it. It looks like walking in a jungle of folders,scripts and files; in the second time i could wrap almost all the process
.
if you are ready, let us begin :
Getting Matlab :
i installed it by torrents this one specifically
[isoHunt] Matlab.7.R14.for.MacOSX-Unix-Linux.zip.torrent
it’s 3 cd’s collection as ISO images with totally 1.11 GB.
Starting Installation:
- in this torrent you can find the CD’s images and three files :
- license.dat
- license.lic
- readme_lic.txt
you can download them now, look at the left side of the page they are Box.net Widget.
you have to decide first where you want to download MATLAB, i chosen /home /ramy . yes, it’s a bad choice because it depends on my account, however it’s simple to change commands to be appropriate to your installation folder we can call this folder $MATLAB.
1. you have to copy license.dat to the installation folder; ~/$MATLAB/.
2. you have to initiate this command from the $MATLAB not from CD.
sudo sh /media/cdrom/install

if you are tired from writing cp command for copying files u can initiate the file manager in the root permissions, i do it for ubuntu with Gnome file manager “Nautilus”.
sudo cp /media/ramy/license.dat /media/ramy/matlab/etc/
# you can do it in windows-like way
sudo nautilus

3. Welcome Screen as usual, press OK.

4. License Agreement, press OK.

5. you can note that installation directory is the same that you initiate the installer from by the command in step 2, you have to put the license.dat there because the installer test if it’s there then it moves it to ~/$MATLAB/etc. press OK.

6. I’m not sure about this message, so proceed and press OK.

7. Also continue, by pressing OK.

8. I’m already chosen all the packages and toolboxes with matlab, press OK.

9. press the button beside “Create symbolic…”, then press OK.

10. press OK.


11. You are asked to put the two other CD’s, press OK.

12. Installation Complete, but the story does not complete
.
13. You have to open the “license.lic” file and replace the string “your_host_name” with the hostname of the computer where Matlab is being installed, ok if u don’t know what’s the host name go System->Administration->System Monitor-> System tab. In my system it’s ramy-desktop.

14.Copy the edited “license.lic” file to “$MATLAB/etc/”.
15. copy the matlab script file from $MATLAB/bin/scripts to $MATLAB/bin.
16. in the Matlab folder you have install_matlab shell script file, you have to initiate that script you can use this command.
sudo sh install_matlab
then , u will have a wizard in the terminal, ok it’s sth long, if you are not interested in any modification by accepting the default configurations. i’m a big YES MAN so accepting all of them. if you forget this last step u will have only the matlab running without any functionality because this step makes the required default path configuration and library path configuration.
Making Desktop Launcher
1.right click on desktop-> create launcher.
2.Type :Application in Terminal.
command: ~/$MATLAB/bin/matlab






you can save a lot of time by mounting the
Waleed | June 24, 2007 | 10:14 pmyou can save a lot of time by mounting the ISO files directly ! , this will save you the time of burning the images and it will be much faster for installation since you are reading from your HDD instead of CDs !
the command should be sth like this :
sudo mkdir /media/iso
cd my_download_folder
sudo mount matlab_CD1.iso /media/iso -o loop -t iso9660
then you continue as if /media/iso was your cdrom.
when it asks for the next CD, you can mount the next iso to another directory … or you can unmount the first one and mount the second :
sudo umount /media/temp
cd my_download_folder
sudo mount matlab_CD2.iso /media/temp -o loop -t iso9660
and so on …
thx, i used that in the first time i installed
zer00 | July 2, 2007 | 9:47 amthx, i used that in the first time i installed Matlab, but in the second time i
burned the images and deleted them on my PC, so i had to make the installation from CDs.
13. You have to open the “license.lic” file and replace
Mustafa Mustafa | August 25, 2007 | 11:12 pmyou can also get your hostname just by typing :
hostnameHello!! Work with matlab 7 (R14) under linux and the distribution
anaGP | May 20, 2008 | 3:38 pmHello!!
Work with matlab 7 (R14) under linux and the distribution kubuntu of linux (ubuntu 8.04 kernel 2.6.24-16-generic). Matlab does not recognize mex -setup (to see underneath and to see matlabrc.m), but in line of command of linux works correctly ¿can help me with this error?
Thank you very much,
AnaGP
////// Error Message //////
Bienvenidos. A trabajar con TrueTime.
Espere por favor …
Todo bien hasta aca …
Warning: Unrecognized MATLAB option “setup”.
License Manager Error -2.
Invalid license file syntax
Feature: MATLAB
License path: /usr/local/matlab7/bin/mex
FLEXlm error: -2,413
For further information, refer to the FLEXlm End User Manual,
available at “www.macrovision.com”.
Check the MATLAB INCREMENT line in your license file,
or make sure you have a USE_SERVER line instead
of INCREMENT lines. Also check to be sure there is
a carriage return at the end of the USE_SERVER line.
For more information, see The MathWorks Support page at
http://www.mathworks.com/support and search for
“license manager error -2″
??? Error using ==> mex
Unable to complete successfully
Error in ==> matlabrc at 197
mex -setup
/////// Lines added at the end of matlabrc so that Matlab recognizes a bookstore called Truetime //////
disp(‘Bienvenidos. A trabajar con TrueTime.’)
disp(‘Espere por favor …’)
addpath([getenv('TTKERNEL')])
init_truetime;
disp(‘Todo bien hasta aca …’);
mex -setup
make_truetime;
[...] see http://linuxexpert.wordpress.com/2007/06/18/how-to-install-matlab-7-r14-for-linux/ [...]
matlab mac os -or octave « | May 25, 2008 | 11:11 am[...] see http://linuxexpert.wordpress.com/2007/06/18/how-to-install-matlab-7-r14-for-linux/ [...]
Hi Guys, I just want to express my profound appreciation &
David | May 27, 2008 | 7:22 pmHi Guys,
I just want to express my profound appreciation & gratitude for the information on this site – I successfully completed the installation and I’ve forwarded to my friends having similar problem.
I struggled with the installation thrice before i came across this site which is why I’m very happy & over the moon. Thanks, you guys are GREATLY APPRECIATED.
Many thanks once again.
Cheers,
David Lewiss
Hi All, Please the error message below appeared after installation in
Michael | May 27, 2008 | 7:37 pmHi All,
Please the error message below appeared after installation in the command window:
Warning: Could not query OpenGL
Warning: OpenGL appears to be installed incorrectly.
PLEASE how do I solve this error message.
Thanks,
Michael
Michael, sorry to say i'm not sure what's the purpose of
zer00 | May 27, 2008 | 9:00 pmMichael,
sorry to say i’m not sure what’s the purpose of your error message, although you mentioned them as warning ones.
You said it happens after installation, did you try to launch matlab from terminal ?
Hi ppl, I just want to say THANK YOU VERY MUCH
Awantha | June 11, 2008 | 6:44 pmHi ppl,
I just want to say THANK YOU VERY MUCH for publishing nice guide lines for installation. I also successfully completed the installation. Well ..I experience this is the nice thing with Linux, Ubuntu,..open source community..
Cheers
[...] Linux . 18 06 2007 This site
How to install Matlab 7 R14 for Linux . « Linux Lab | October 1, 2008 | 8:01 pm[...] Linux . 18 06 2007 This site has been moved to the new domain www.linuxtent.com, Click here to be redirected to [...]
please help i have error : /media/disk-1/Matlab_source/bin/glnx86/MATLAB: error while loading shared
Ondrej | October 7, 2008 | 12:54 pmplease help i have error :
/media/disk-1/Matlab_source/bin/glnx86/MATLAB: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
i need matlab for my Bc. degree
please try this sudo apt-get install libstdc++5
Ramy Eid | October 7, 2008 | 1:05 pmplease try this
sudo apt-get install libstdc++5oh thanks very much it semed it workd but there
Ondrej | October 9, 2008 | 11:31 amoh thanks very much it semed it workd but there is problem when a create desktop launcher it start with first matlab window (loading window) and then nothing. When i run matlb in bin in console, matlab is running but in console :
Locking assertion failure. Backtrace:
Locking assertion failure. Backtrace:
Please response I dont know if its normal i am noob in linux
Ondrej, This is correct :) it may not work if you
Ramy Eid | October 9, 2008 | 12:38 pmOndrej,
it may not work if you use the launcher the same as using al+F2 initiator.
This is correct
I don’t know why, but for me terminal is more than enough
Okey then thank you vety much for failure and support,
Ondrej | October 9, 2008 | 1:23 pmOkey then thank you vety much for failure and support, i try M-files and graphics and works thx
there is one problem : icense Manager Error -8. Invalid (inconsistent)
W0T4N | October 18, 2008 | 7:20 amthere is one problem :
icense Manager Error -8.
Invalid (inconsistent) license key
The license-key and data for the feature do not match.
This usually happens when a license file has been altered
Feature: MATLAB
License path: /home/ondrej/matlab/etc/license.dat:/home/ondrej/matlab -
/etc/*.lic
FLEXlm error: -8,130
For further information, refer to the FLEXlm End User Manual,
available at “www.macrovision.com”.
Make sure your license file is correct.
Check date and passcodes in MATLAB INCREMENT line of license file.
For more information, see The MathWorks Support page at
http://www.mathworks.com/support and search for
“license manager error -8″
this writes on my screen whe a i try install matlab please help
W0T4N, You can copy the license.dat contents and paste them
aboSamoor | October 18, 2008 | 9:36 amW0T4N, You can copy the license.dat contents and paste them here.
so you can be sure it reads the file correctly
[...] If you don’t have Matlab and you want to
Running Matlab without desktop | LinuxTent | October 24, 2008 | 11:39 am[...] If you don’t have Matlab and you want to install it on Linux you can find the tutorial here [...]
WHEN I START matlab it gives following warning:- Could not
akhilesh kumar | August 17, 2009 | 11:02 amWHEN I START matlab it gives following warning:- Could not query OpenGL.
Warning: OpenGL appears to be installed incorrectly.
and when i give any command it gives following message-
??? Can’t load ‘/usr/local/matlab7/bin/glnx86/libmwsimulink.so’: libXft.so.1: cannot open shared object file: No such file or directory
??? Insufficient memory to execute script %.
————————————————————————
Assertion detected at Mon Aug 17 16:26:44 2009
————————————————————————
Assertion failed: hdr->in_use != 0, at line 706 of file “memmgr/memcache.cpp”.
Attempt to free previously freed memory
Configuration:
MATLAB Version: 7.0.0.19901 (R14)
Operating System: Linux 2.6.24-24-generic #1 SMP Fri Jul 24 22:46:06 UTC 2009 i686
Window System: The X.Org Foundation (10400090), display :0.0
Current Visual: 0×23 (class 4, depth 24)
Processor ID: x86 Family 6 Model 14 Stepping 8, GenuineIntel
Virtual Machine: Java 1.4.2_02 with Sun Microsystems Inc. Java HotSpot(TM) Client VM
(mixed mode)
Default Charset: UTF-8
Stack Trace:
[0] libmwbridge.so:ThrowAssertion()(0xb7dc3be0 “Assertion failed: hdr->in_use !=..”, 0xb7dad739, 512, 0xbfd1bc2d) + 164 bytes
[1] libmwbridge.so:MATLABAssertFcn(char const*, char const*, int, char const*)(0xb7f3d231 “: hdr->in_use != 0,”, 0xb7f3d1c0 “memmgr/memcache.cpp”, 706, 0xb7f3c220 “Attempt to free previously freed..”) + 113 bytes
[2] libut.so:ut_assertstr(0xb7f3d231 “: hdr->in_use != 0,”, 0xb7f3d1c0 “memmgr/memcache.cpp”, 706, 0xb7f3c220 “Attempt to free previously freed..”) + 55 bytes
[3] libut.so:mw_free(0xb543eaf0 “_GLOBAL__I__ZN32_GLOBAL__N_iolib..”, 0, 0xbfd1bce8, 0xb7f24de2) + 727 bytes
[4] libut.so:utFree(0xb543eaf0 “_GLOBAL__I__ZN32_GLOBAL__N_iolib..”, 0xb7f51534, 0xbfd1bd08 “, 0xb6aafc0a) + 34 bytes
[5] libmwm_pcodeio.so:mpio_free_pcodeheader(0xb7f5c464, 0xbfd1c700, 0xbfd1c778, 0xb7a540c8) + 150 bytes
[6] libmwm_interpreter.so:inEvalStringWithIsVarFcn(_memory_context*, char const*, unsigned, EvalType, int, mxArray_tag**, inDebugCheck, _pcodeheader*, int*, bool (*)(void*, char const*), void*)(0xb7f5c464, 0×08a631c0 “simulink\n”, 9, 0) + 2400 bytes
[7] libmwm_interpreter.so:inEvalCmdNoEnd(0×08a631c0 “simulink\n”, 0×08a631c0 “simulink\n”, 0xbfd1c978, 0xb7d5adc3) + 110 bytes
[8] libmwbridge.so:mnParser(0xb7d30e8b “@@@”, 0xb7d30f7b “mnParser”, 1, 1) + 471 bytes
[9] libmwmcr.so:mcrInstance::mnParser()(0×0809eed8, 0, 0xbfd1ecb8, 0×0804a90e) + 96 bytes
[10] MATLAB:mcrMain(int, char**)(1, 0xbfd1ed64, 0xbfd1ecd8, 0xb77ce2a0) + 308 bytes
[11] MATLAB:main(1, 0xbfd1ed64, 0xbfd1ed6c, 0xb6432238) + 23 bytes
[12] libc.so.6:__libc_start_main~(0×0804a7d0, 1, 0xbfd1ed64, 0×0804a3e4) + 224 bytes
Please help me what to do?
Thank you so much! I wasted over four hours trying
CarlUsask | December 11, 2009 | 4:44 amThank you so much! I wasted over four hours trying to install Matlab using other directions, and none of them worked out. But yours was pretty clear and effective. Regarding the use of ISO images, I installed Gmount-iso to load them. It comes with three media files cdrom, cdrom0, and iso.
Once again, many thanks.
>??? Can’t load ‘/usr/local/matlab7/bin/glnx86/libmwsimulink.so’: libXft.so.1: I think there might be
Johan Sydseter | December 13, 2009 | 8:39 pm>??? Can’t load ‘/usr/local/matlab7/bin/glnx86/libmwsimulink.so’: libXft.so.1:
I think there might be 2 solutions for you akhilesh kumar.
Your incosistencies is probably bevause you haven’t installed libxft2 or libxft1. Try to install them.
sudo apt-get install libxft2
and try to run Matlab and symlink again.
If you have a problem like: Invalid (inconsistent) license key The
Johan Sydseter | December 13, 2009 | 9:39 pmIf you have a problem like:
Invalid (inconsistent) license key
The license-key and data for the feature do not match.
This usually happens when a license file has been altered
It’s usually caused by swapping the license file back and forth between different directories prior to installing matlab. You can solve it by going back and opening the installation cd and finding the etc/license.dat or MathWorks_R(number)_1/license.dat and pulling it over to your installation directory and overwriting you existing license file matlab7/etc/license.dat
Mathworks have a good article about the libGL and symlink
Johan Sydseter | December 13, 2009 | 9:43 pmMathworks have a good article about the libGL and symlink problem here:
http://www.mathworks.com/support/solutions/en/data/1-18N21/index.html?solution=1-18N21
Thank you for all ;)
Omar | February 23, 2010 | 8:43 pmThank you for all
Really, its working.. but problem with simulink operation only thanks
Rajkamal R | May 2, 2010 | 2:17 amReally, its working..
but problem with simulink operation only
thanks
Thanks!!!!! =)
Laura | May 9, 2010 | 11:55 pmThanks!!!!! =)
This thread helped me tremendously. Thanks.
chaugzi | May 22, 2010 | 5:59 amThis thread helped me tremendously. Thanks.
hi! I have installed matlab but I can't launch it as
erzebet | August 8, 2010 | 4:36 pmhi!
I have installed matlab but I can’t launch it as in home/username/matlab/bin there is no matlab icon! yet i have a .cmp archive called prod.156463.cmp – do you know what can I do?