The cluster has been stacked in the room for a long time, and many JAVA and C Programs have been run on it, showing strong computing performance. However, JAVA and C Programs are generally used by computer professionals. In addition, running on clusters requires a bit of parallel design ideas, which makes the system farther and farther away from common users. MATLAB is widely used by theoretical researchers and engineering developers for its powerful computing functions and ease of use. For this reason, I tried to install a MATLAB program on the Cluster machine for a long time, but I had no idea how to use Linux before, and I had no time to do so. This work has been put on hold. This time, I had to calculate a relatively large task, and finally I tried to fix it. As mentioned above, you don't need to worry about a "cluster. The real thing to do is install MATLAB in Linux. Taking MATLAB Version 7.0.0.19901 (R14) as an example, this article officially started.
Step 1. Preparation 2. Install stage 1st 3. Install stage 2nd 4. Run 1. Preparations
- Installation File
The source files required for installation of MATLAB must be available. Otherwise, we will leave it empty. Here are four files:
MATLAB linux1.iso
MATLAB linux2.iso
MATLAB linux3.iso
The files License.zip are stored in the/source/directory.
- Confirm installation directory
The installation directory is where you need to install the MATLAB program. Similar to the directory under Program Files in MS Windows. Here is a convenient description, tentatively set to/programs/matlab /. Available
Mkdir/programs
Mkdir/programs/matlabTo create a directory.
- Prepare license
Decompress the file in license.zip and use the unzip command. Decompress the package and focus on two files: license. lic and license. dat *. The latter may have some suffixes when being extracted, which may be different. I will use * here. To install license. dat *, copy it to the installation directory of MATLAB, that is,/programs/matlab/, and name it license. dat. Command
Cp/source/license. dat */programs/matlab/license. dat. After the license is ready, you can load and install the installation CD.
- Attach a cd
Run the following command to load 1st CDS:
Mount-o loop/source/MATLAB linux1.iso/media/cdrom/Here,/media/cdrom/is the location where your virtual disc is stored. This directory must exist in advance. If not, use the mkdir command to create one. Of course, you can also set this directory elsewhere. The mount command parameter-o loop was searched from the Internet, and I did not investigate its deep meaning and used it directly. In some cases, there are encoding and other parameters. I have omitted them, and the results can also be successful. So far, the content of the 1st discs has been successfully reached/media/cdrom.
2. Installation Process stage 1
- Install
Direct execution
/Media/cdrom/install. If your linux system is 64-bit, you need to add the parameter-glnx86 after install. If you are installing it on the client, add the parameter-t. There is a lot of interaction information, like "previous", "Next" and "cancel" in MS Windows. Just press Enter. If you want to think about it, take a look at the content in the brackets []. This content is the default value of carriage return. If you want to modify this value, enter the new value and press Enter.
Because there are three discs, after installing 1st of the Content During the installation process, you will be prompted to insert 2nd discs. During this period, you need to attach several other discs. Since the command/media/cdrom/install before the command line is not over, and return to the new command line prompt, I did not dare to disconnect it and load the disc, but opened a new client, first umount the original disc and then load the new disc. In this case, it should not be installed in the xinterface.
- Copy license. lic
After all the three discs are installed, the work is not complete. Copy license. lic to the etc directory under the installation directory of MATLAB. Available commands
Cp/source/license. lic/programs/matlab/etc/.
- Modify license. lic
Run the following command to modify the 1st line content of the file.
Vi/programs/matlab/etc/license. licChange ** In the first line to the name of the local machine.
SERVER *** ANY 5353Command available for local name
Hostname. Save and exit. Prepare for installation in Stage 1.
3. Installation Process stage 1
Run the following command:
/Programs/matlab/install_Matlab
Then a series of carriage returns can end.
4. Run (back to directory)
Execute Command
/Programs/matlab/bin/matlab
You can run MATLAB. If your system is 64-bit, you need to add the parameter-glnx86 during execution. If you run MATLAB through the client, the GUI may not be required, you can use one or more of the nojvm-nodisplay-nodesktop parameters.
Finally, if you need to enter/programs/matlab/bin/every time you execute matlab, isn't it annoying? The solution is to add the path to the environment variable and run the following command line:
Export PATH = $ PATH:/programs/matlab/bin/