Notes
Tech Notes
Installing Matlab in Ubuntu 11.10
First, I logged into Mathworks and downloaded my products - Matlab R2011b and my toolboxes. I followed their instructions on how to install it.
After installing, I need to do some configuring:
First, add Matlab to the menu. Install alacarte if necessary:
sudo apt-get install alacarte
Open alacarte and choose the category you want (Science for me), and choose "New Item". Choose "Application", type in Matlab for the name and
/usr/local/MATLAB/R2011b/bin/matlab -desktop
Now I want to copy in my old path definitions:
sudo cp pathdef.m /usr/local/MATLAB/R2011b/toolbox/local/pathdef.m
Now we need to make a link for Matlab to see the C libraries. Choose the right command depending on 32 or 64 bit:
sudo ln -s /lib/i386-linux-gnu/libc-2.13.so /lib/libc.so.6 sudo ln -s /lib/x86_64-linux-gnu/libc-2.13.so /lib64/libc.so.6
To enable running external programs, other c++ and fortran libraries need to be properly updated and linked. Look at the output of this command:
ll /usr/local/MATLAB/R2011b/sys/os/glnxa64/
It is likely that these two links exist:
libgfortran.so.3 -> libgfortran.so.3.0.0 libstdc++.so.6 -> libstdc++.so.6.0.10
Search for these libraries on your machine:
locate libgfortran.so locate libstdc++.so
Look at the output of those commands for newer version in either /usr/lib/x86_64-linux-gnu or /usr/lib/i386-linux-gnu. Update Matlab's links to point to these newer versions:
sudo ln -sf /usr/lib/i386-linux-gnu/libgfortran.so.3.0.0 /usr/local/MATLAB/R2011b/sys/os/glnx86/libgfortran.so.3 sudo ln -sf /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16 /usr/local/MATLAB/R2011b/sys/os/glnx86/libstdc++.so.6
or, for 64-bit:
sudo ln -sf /usr/lib/x86_64-linux-gnu/libgfortran.so.3.0.0 /usr/local/MATLAB/R2011b/sys/os/glnxa64/libgfortran.so.3 sudo ln -sf /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16 /usr/local/MATLAB/R2011b/sys/os/glnxa64/libstdc++.so.6
| < Prev | Next > |
|---|
Last Updated (Monday, 02 April 2012 00:12)
Designed by i-cons, modified by Judson.
Comments
sudo ln -s /lib/i386-linux-gnu/libc-2.13.so /lib/libc.so.6
sudo ln -s /lib/x86_64-linux-gnu/libc-2.13.so /lib/libc.so.6
it shouldn't be /lib64/libc.so.6 ??
Thanks you again.-
I think it depends on whether or not you have a 64 or 32 bit machine. For 64 bit, yes, it should point to /lib64/libc.so.6
thanks for pointing this out!
-Judson
Hi Ilias,
Yes, I have had good success with simulink without doing any other steps than those listed here.
-Judson
RSS feed for comments to this post