Linux上安裝並啟動MATLAB MCR

2021-09-24 03:43:13 字數 1114 閱讀 2635

專案需要在另外的伺服器上部署,**中有一部分是matlab寫的,沒打短時間內轉成python的,因此需要在伺服器上安裝matlab。

但是考慮到matlab體積太大,而計算只需要matlab的執行環境就可以了,因此考慮採用matlab runtime,安裝到伺服器上。

具體的步驟如下:

安裝說明: 

官網上給出了具體的教程: 

本次安裝採用的是靜默安裝,並且安裝到預設的目錄下/usr/local/matlab/matlab_runtime/v94/

因此只需要輸入: 

./install -mode silent -agreetolicense yes

安裝好之後,執行之前編譯好的matlab程式: 

./run_get_liangtibuwei.sh /usr/local/matlab/matlab_runtime/v94

執行正常的話,會輸出結果。

報錯情況: 

部分情況下會報錯,本次出現過兩次報錯,兩次錯誤只發生在沒有影象介面的ubuntu系統中,而帶有影象介面的

ubuntu則沒有出現過該問題。(

some graphics libraries such as julia's gr.jl and python's vtk require x11 (linux's windowing system) support files. you're might encounter the following error when running your code: libxt.so.6: cannot open shared object file: no such file or directory):

1) start failed: libxt.so.6: cannot open shared object file: no such file or directory

解決辦法:

sudo apt-get install libxt6

2) can't reload '/usr/local/matlab/matlab_runtime/v93/bin/glnxa64/libmwcoder_types.so'"

解決辦法:

sudo apt-get -y install xserver-xorg

啟動並開啟linux上的mysql

linux下各種命令 檢視mysql狀態命令 service mysql status啟動mysql service mysql start停止mysql service mysql stop進入mysql mysql u root p回車輸入密碼,linux本地上登入成功。但是需要在windows...

Linux下安裝nginx並啟動

wget 2020 06 23 15 42 43 正在解析主機 nginx.org nginx.org 95.211.80.227,62.210.92.35,2001 1af8 4060 a004 21 e3 正在連線 nginx.org nginx.org 95.211.80.227 443.已連...

linux上安裝和啟動docker

這裡我們將docker安裝到centos7上,最好是將yum更新下 sudo yum update3.設定yum源,這裡設定為阿里雲,如果不設定將會連線國外的站點,可能會安裝失敗 sudo yum config manager add repo如果yum之前就設定好了,就可以進行docker的安裝了...