Install Matlab in Ubuntu12.04LTS

Source: Internet
Author: User
Environment ubuntu12.04lts32bitmathworksmatlab 2010aunixiso-TBE

EnvironmentUbuntu 12.04 LTS 32bit

Mathworks Matlab 2010a UNIX ISO-TBE

[CD image] http://www.linuxidc.com/Linux/2011-03/33836p2.htm (Mathworks Matlab R2010a Win/UNIX)

The installation process is as follows:

1) copy the matlab installer to the HOME Directory, that is,/home/cindy (cindy is your username)

2) Open the terminal and enter the command to mount the ISO file (the file name here is matu20Xa. iso ):

Sudo mount-o loop matu20Xa. iso/mnt

3) switch to the directory cd/mnt

4) use commands to create soft links

Sudo ln-s/lib/i386-linux-gnu/libc. so.6/lib/libc. so.6

5) use the following command to install lipXp. so

Sudo apt-get install libxp6 libxp-dev

Create soft link sudo ln-s/usr/lib/i386-linux-gnu/libXp. so/usr/lib/libXp. so

6) install the matlab Application

Sudo./install

7) Select the installation location in the window:/usr/local/MATLAB/R2010a.

8) run the command line to open the matlab: sudo/usr/local/MATLAB/R2010a/bin/matlab.

9) uninstall the image file after installation. Sudo umount/mnt

10) install matlab-support in the Software Center. Run sudo apt-get install matlab-support and add the installation directory of matlab to/usr/local/MATLAB/R2010a, then we can see Matlab in DASH programming.

Possible problems and solutions:

1)/usr/local/MATLAB/R2010a/bin/util/oscheck. sh:/lib64/libc. so.6: not found

Solution: matlab cannot find this file. You need to create a soft link for this file:

Sudo ln-s/lib/i386-linux-gnu/libc. so.6/lib/libc. so.6

2) TheX11 library libXp. so does not exist. MATLAB will not be able to run on this machine until the library is installed on this system.

Solution: first, enter the command: sudo apt-get install libxp-dev libxp6 in the command line.

Find libXp. so location, on my computer location is/usr/lib/i386-linux-gnu/libXp. so, create a soft link for the file: sudo ln-s/usr/lib/i386-linux-gnu/libXp. so/usr/lib/libXp. so

3) The desktop configuration was not saved successfully

Solution: the key to the problem lies in Permission Denied. Therefore, the solution is to grant permissions to directories and files,
Sudo chmod a + w-R ~ /. Matlab

4) after installing matlab, it is found that there is no matlab program under the matlab root/bin. The Activation Program is not started automatically.

Solution: After many experiments, we found that this problem may occur because matlab was not installed as the first component by the system. You can install only the matlab component in the first round. Do not install other toolboxes. After the installation is successful, install the Toolbox again and select to install other toolboxes.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.