Article Title: Installation and Setup of Matlab in Linux. Linux is a technology channel of the IT lab in China. Includes desktop applications, Linux system management, kernel research, embedded systems, open-source systems, and other basic classification test systems: Everest0.5/Fedora 8
I. Installation
Matlab R14 downloaded from the internet
1. First, you must create an installation directory.
[Wzh @ localhost ~] $ Su
[Root @ localhost ~] $ Mkdir/usr/matlab
2. Attach the CD image
[Root @ localhost wzh] # mount-o loop-t iso9660/mnt/hda7/soft/MATLAB r14linux/MATLAB _ r14_mac.linux.unix_cd1.iso
/Media/cdrom
3. Copy license. dat (the locations of different discs may be different)
[Root @ localhost wzh] # cd/usr/matlab
[Root @ localhost matlab] # cp/media/cdrom/maid. License-Mac. OS .X-Unix-
Linux/maid. License-Mac. OS .X-Unix-Linux/license. dat.
(This point must be copied to the current directory)
4. Start Installation
[Root @ localhost matlab] #/media/cdrom/install
5. Change the CD for the middle disk, and open another shell to load the CD and cd3. the installation is complete.
[Root @ localhost wzh] # umount/media/cdrom
[Root @ localhost wzh] # mount-o loop-t iso9660/mnt/hda7/soft/MATLAB r14linux/MATLAB _ r14_mac.linux.unix_cd2.iso
/Media/cdrom
[Root @ localhost wzh] # umount/media/cdrom
[Root @ localhost wzh] # mount-o loop-t iso9660/mnt/hda7/soft/MATLAB r14linux/MATLAB _ r14_mac.linux.unix_cd3.iso
/Media/cdrom
6. Reload CD1, copy and modify license. lic.
[Root @ localhost wzh] # umount/media/cdrom
[Root @ localhost wzh] # mount-o loop-t iso9660/mnt/hda7/soft/MATLAB r14linux/MATLAB _ r14_mac.linux.unix_cd1.iso
/Media/cdrom
[Root @ localhost wzh] # cp/media/cdrom/maid. License-Mac. OS .X-Unix-Linux/maid. License-Mac. OS .X-Unix-Linux/maid/etc/
[Root @ localhost wzh] # kwrite/usr/matlab/etc/license. lic (or gedit/usr/matlab/etc/license. lic)
Use the command to get the hostname
[Root @ localhost matlab] # hostname
Localhost. localdomain
Write the obtained hostname to the first line of license. lic, as follows:
SERVER localhost. localdomain ANY 5353.
Save files
After installation, run the command/usr/matlab/bin/matlab to run matlab.
Ii. Settings
1. create shortcuts
Right-click the desktop and create a shortcut to/usr/matlab/bin/matlab. It can also be created on the taskbar panel.
2. It is said that the Chinese environment is easy to crash. Because my system is an English environment, the following is an excerpt.
Step 1: After matlab r2007a is installed, matlab will easily crash when started in the Chinese environment, but it will work normally in the English environment! This indicates that matlab conflicts with the Chinese environment.
Step 2: Set environment variables:
Modify the matlab startup in the bin directory under the matlab installation directory. The specific method is as follows:
A. Go to the bin directory under the matlab installation directory.
B. sudo vi matlab
C. In #! /Bin/sh next line plus LANG = en_AU.UTF-8 LANG = en_AU.UTF-8 XMODIFIERS =
D. Save and exit. You can run the script directly by entering matlab on the terminal.
3. selinux may not allow installation. Set it to allow the test. There is another problem (I have not encountered this problem, excerpt)
Error while loading shared libraries: libXp. so.6
The solution is to update /...... Omitting directories ...... /Libmwin. so file
Copy the file to the/usr/lib directory and rename it libXp. so.6.
4. Support for chinese (excerpt)
Su
Cd/opt/matlab/sys/java/jre/glnx86/jre1.5.0/lib/fonts/
Mkdir fallback
Cd fallback
Ln-s/home/max/. fonts/simsun. ttc./simsun. ttf
5. Support for maple interface (excerpt, not tried)
[The latest version of php7.3 seems to have solved the symbolic operation function]
Export LD_ASSUME_KERNEL = 2.4.1
(......)
6. Support for compiling a mex file (excerpt, not tried)
[You can use gcc4.1.0 to compile the mex file in the latest version of php7.3, that is, 2006b. The official supported version is 3.4.0-3.4.5]
[Execute mex-setup to set the compiling environment before compiling the mex file]
I'm trying to compile a Mex file on SuSE linux 10.1, which uses GCC 4.1.0.The file compiles fine, but when I try to run it I get this error:/opt/Matlab/bin/glnx86/../../sys/os/glnx86/libgcc_s.so.1: version`GCC_3.3' not found (required by /usr/lib/libstdc++.so.6).From the documentation, it appears as though Matlab only supports GCC 3.2.3.I suspect that my only solution is to download and compile this compiler andthen use it to compile my mex file.If you must use gcc 3.2.3, your best bet isto first build and install gcc 3.3.6, and then use that to build gcc 3.2.3.3.1. build and install gcc 3.3.6 firstdownload gcc-3.3.6.tar.bz2 to /home/max/cd home/maxtar xjvf gcc-3.3.6.tar.bz2 # $srcdir=/home/max/gcc-3.3.6mkdir objdircd objdir$srcdir/configure --prefix=/opt/gcc-3.3.6 # or wherevermake bootstrapsumake install3.2 and then use gcc 3.3.6 to build gcc 3.2.3export PATH=/opt/gcc-3.3.6/bin:$PATHexport LD_LIBRARY_PATH=/opt/gcc-3.3.6/lib:$LD_LIBRARY_PATHmkdir objdircd objdir$srcdir/configure --prefix=/opt/gcc-3.2.3 # or wherevermake bootstrapsumake install3.3 now, compile your mex file, before compiling doexport PATH=/opt/gcc-3.2.3/bin:$PATH |