Transfer from http://www.aichengxu.com/diannao/39100.htm
0. Download the installation package
Download the ISO image file for the matlab2014a for Linux installation package (thanks to the Almighty Niang) as well as the cracked package (: Click to open the link)
Suppose that the location of the cracked package after decompression is ~/downloads/crack
Mount the downloaded ISO file
Mount-o Loop/home/downloads/mathworks_r2014a.iso/media/cdrom
1. Installation Preparation
1.1 JDK
Download JDK7 from the official Oracle website and the current version is jdk1.7.0_71. (Note: OpenJDK seems to have compatibility issues, the other matlab2014a is currently incompatible JDK8)
Move the extracted jdk-7u71-linux-x64.tar.gz to the/usr/lib/jvm/jdk1.7.0_71
sudo mv jdk1.7.0_71/usr/lib/jvm/jdk1.7.0_71
Setting environment variables
sudo vi/etc/profile
Add at the end of the file
Export java_home=/usr/lib/jvm/jdk1.7.0_71
Save and eject and then use the following command is set to take effect
Source/etc/profile
Modifying the system's default JDK
sudo update-alternatives--install/usr/bin/java java/usr/lib/jvm/jdk1.7.0_71/bin/java 300sudo update-alternatives-- Install/usr/bin/javac Javac/usr/lib/jvm/jdk1.7.0_71/bin/javac 300sudo update-alternatives--config Javasudo Update-alternatives--config Javac
Enter java-version and see the following message indicating that the setup was successful
Java version "1.7.0_71" Java (tm) SE Runtime Environment (build 1.7.0_71-b14) Java HotSpot (tm) 64-bit Server VM (Build 24.71- B01, Mixed mode)
1.2 Creating the installation directory
sudo mkdir-p/usr/local/matlab/etcsudo mkdir-p/usr/local/matlab/2014a
2. Installation
2.1 Editing a configuration file
Copy the configuration file to/usr/local/matlab/etc
sudo cp/media/cdrom/installer_input.txt/usr/local/matlab/etcsudo cp/media/cdrom/activate.ini/usr/local/matlab/ Etcsudo CP ~/downloads/crack/<span style= "font-family:arial, Helvetica, Sans-serif;" >/usr/local/matlab/etc</span>
modifying read and Write properties of a file
chmod +w/usr/local/matlab/etc/installer_input.txtchmod +w/usr/local/matlab/etc/activate.ini
Edit the Installer_input.txt file to set the configuration item as follows
destinationfolder=/usr/local/matlab/2014a #安装目录fileInstallationKey = 12345-67890-12345-67890 #序列号, Seems to be able to write casually agreetolicense=yes #同意协议outputFile =/tmp/mathwork_install.log #安装日志mode =silent # Turn on unattended installation Activationpropertiesfile=/usr/local/matlab/etc/activate.ini #激活文件licensePath =/usr/local/matlab/etc/ License_405329_r2014a.lic #license文件
Edit the Activate.ini file and set it as follows
Issilent=true #开启silent模式activateCommand =activateoffline #设置激活方式, offline activation without networking licensefile=/usr/local/matlab/etc/ License_405329_r2014a.lic #license文件位置
2.2 Installation
Perform the following installation command
Sudo/media/cdrom/install-inputfile/usr/local/matlab/etc/installer_input.txt
2.3 Activation
When the installation is complete, activate matlab
sudo mv/usr/local/matlab/bin/glnxa64/libmwservices.so/usr/local/matlab/bin/glnxa64/libmwservices.so.baksudo cp ~/ downloads/-/linux/libmwservices.so/usr/local/matlab/bin/glnxa64/
Use the following command to activate
Sudo/usr/local/matlab/2014a/bin/activate_matlab.sh-propertiesfile/usr/local/matlab/etc/activate.ini
2.4 Setting environment variables
Setting environment variables
sudo vi/etc/profile
Add at the end of the file
Export Path=/usr/local/matlab/2014a/bin: $PATH
Save and exit to make the settings effective
Source/etc/profile
Installation is complete.
3. Frequently Asked Questions
3.1 Installation prompt image file after mount Input/output error
You can try to unzip the ISO file (note: non-mounted) to a folder before installing
3.2 Installation prompt eval:1:/tmp/mathworks_15227/java/jre/glnxa64/jre/bin/java:permission denied
Unzip the ISO file into a folder, then go to its Sys/java/jre/xxx/jre/bin directory and execute the command
chmod a+x *
Then install from the extracted folder
3.3 Installation prompt cannot find libjli.so
This error is caused by the linker not scanning the folder where Libjli.so is located. Modify File/etc/ld.so.conf
sudo vi/etc/ld.so.conf
Add the following at the end of the file
/usr/lib/jvm/jdk1.7.0_71/lib/amd64/jli
Save and eject, and then execute
/sbin/ldconfig-v
3.4 Installation prompt cannot find sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so
Unzip the ISO file, then go to its sys/java/jre/glnxa64/jre/lib/amd64/folder and execute the following command
MV Server Server.bakcp-r/usr/lib/jvm/jdk1.7.0_71/jre/lib/amd64/server.
Then use the extracted folder to install
3.5 installation prompt Cannot find sys/java/jre/glnxa64/jre/lib/amd64/headless/libmawt.so
Unzip the ISO file, then go to its sys/java/jre/glnxa64/jre/lib/amd64/folder and execute the following command
MV Headless Headless.bakcp-r/usr/lib/jvm/jdk1.7.0_71/jre/lib/amd64/headless.
Then use the extracted folder to install
Linux Server command-line mode installation matlab2014a