首頁 > 軟體

Linux命令列模式下安裝MATLAB

2020-06-16 17:04:49

Linux命令列模式下安裝MATLAB

1.掛載映象

mount -o loop xxx/MATHWORKS_R2014A.iso /media/cdrom

2.建立安裝目錄

sudo mkdir -p /usr/local/matlab/etc
sudo mkdir -p /usr/local/matlab/2014a

3.安裝

(1)移動組態檔

sudo cp /media/cdrom/installer_input.txt /usr/local/matlab/etc
sudo cp /media/cdrom/activate.ini /usr/local/matlab/etc
sudo cp xxx/Crack/installer_input.txt /usr/local/matlab/etc
sudo cp xxx/Crack/activate.ini /usr/local/matlab/etc

(2)修改組態檔

①修改檔案屬性

chmod +w /usr/local/matlab/etc/installer_input.txt
chmod +w /usr/local/matlab/etc/activate.ini

②修改installer_input.txt檔案

destinationFolder=/usr/local/matlab/2014a #安裝目錄
fileInstallationKey= 12345-67890-12345-67890 #序列號,似乎可以隨便寫
agreeToLicense=yes #同意協定
outputFile=/tmp/mathwork_install.log #安裝紀錄檔
mode=silent #開啟無人值守安裝
activationPropertiesFile=/usr/local/matlab/etc/activate.ini #啟用檔案
licensePath= /usr/local/matlab/etc/license_405329_R2014a.lic #license檔案

③修改activate.ini檔案

isSilent=true #開啟silent模式</font>
activateCommand=activateOffline #設定啟用方式, 離線啟用 無需聯網
licenseFile=/usr/local/matlab/etc/license_405329_R2014a.lic #license檔案位置

④執行安裝命令

sudo ./install -mode silent -fileInstallationKey 29797-39064-48306-32452 -agreeToLicense yes -activationPropertiesFile matlab2014a_for_Linux/Crack/license_405329_R2014a.lic  -destinationFolder  /usr/local/2014a

⑤你知道

sudo cp Crack/Linux/libmwservices.so /usr/local//matlab/bin/glnxa64/
sudo /usr/local/matlab/2014a/bin/activate_matlab.sh -propertiesFile /usr/local/matlab/etc/activate.ini

⑥設定環境變數

export PATH=/usr/local/matlab/2014a/bin:$PATH
source /etc/profile

Ubuntu 14.04下安裝Matlab2013a http://www.linuxidc.com/Linux/2016-08/134082.htm

Ubuntu Server上安裝Matlab http://www.linuxidc.com/Linux/2014-09/106242.htm

Ubuntu 16.04 LTS 安裝 MATLAB 2014b  http://www.linuxidc.com/Linux/2016-10/136436.htm

Matlab編譯cuda的.cu檔案 http://www.linuxidc.com/Linux/2014-04/100675.htm

Linux Matlab伺服器進一步改造成Application Server(應用程式伺服器) http://www.linuxidc.com/Linux/2014-09/106340.htm

Matlab 坐標圖動畫,動態顯示資料 http://www.linuxidc.com/Linux/2016-03/129056.htm

Ubuntu 14.04安裝Matlab2012a過程 http://www.linuxidc.com/Linux/2015-12/126297.htm

Ubuntu 16.04 安裝設定MATLAB+Python +CUDA8.0+cuDNN+OpenCV3.1的Caffe環境   http://www.linuxidc.com/Linux/2017-06/145087.htm

精通 MATLAB 7.0 混合程式設計 清晰中文PDF版  http://www.linuxidc.com/Linux/2017-05/143845.htm

本文永久更新連結地址http://www.linuxidc.com/Linux/2017-10/147613.htm


IT145.com E-mail:sddin#qq.com