国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 系統 > Linux > 正文

Ubuntu下安裝矩陣實驗室Matlab

2024-08-28 00:09:06
字體:
來源:轉載
供稿:網友

曾經試過很多次,都沒有成功,連安裝的界面都進不去。原因是在64位的機器上裝了64位的系統,但是matlab的各種版本似乎都對64bit非常反感,只好作罷。畢竟那個時候還有Windows嘛,在Linux下裝matlab只是興趣使然。

昨天重新安裝了Ubuntu系統,徹底的沒有Windows了。今天嘗試了很久,終于裝上了。簡單記錄下過程,今后重裝還有參考

1、一定裝7.0及以上版本。6.5的能進入安裝界面,但是在驗證key文件的時候總是過不去。網上有人提出了修改系統時間的辦法,試過了,未遂;嘗試7.0,沒有問題;

2、安裝過程很順利,運行時會出現比較大的問題:simulink無法啟動,而且輸入的命令會直接導致程序崩潰,ctrl c都無法響應,只能用kill -9的辦法。網上提供了一套解決方案,copy如下:

simulink有問題,下面是各種錯誤信息的解決方法。

??? Can't load '/usr/local/matlab/bin/glnx86/libmwsimulink.so': libXft.so.1: cannot open shared object file: No such file or directory

Solution:
[root@localhost matlab]# updatedb && locate libXft.so
/usr/lib/libXft.so
/usr/lib/libXft.so.2
/usr/lib/libXft.so.2.1.2

[root@localhost matlab]# ln -s /usr/lib/libXft.so.2 /usr/lib/libXft.so.1
然后會出現
??? Can't load '/usr/local/matlab/bin/glnx86/libmwsimulink.so':
/usr/local/matlab/bin/glnx86/libqt-mt.so.3: undefined symbol: XftFreeTypeOpen

Solution :
# install qt 3.3
# mv /usr/local/matlab/bin/glnx86/libqt-mt.so.3 /usr/local/matlab/bin/glnx86/libqt-mt.so.3_back
# ln -s /usr/lib/libqt-mt.so.3.3 /usr/local/matlab/bin/glnx86/libqt-mt.so.3

然后又會出現
/usr/local/matlab/bin/glnx86/../../sys/os/glnx86/libgcc_s.so.1:
version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)
或者
/usr/local/matlab/bin/glnx86/../../sys/os/glnx86/libgcc_s.so.1: version `GCC_3.3' not found (required by /usr/lib/libstdc++.so.6)

Solution :
# find libgcc_s.so.1 for 3.3 or 4.2
or a one for all way

Matlab was built with a different version of gcc (3.2.3 in the case of R14SP2), whereas Fedora Core 5 has gcc 4.1.0. The following trick is alluded to in the file ${MATLAB}/sys/os/glnx86/README.libstdc++, but you need to be the root user. Type these commands ...

# cd $MATLAB
# cd sys/os/glnx86
# mkdir old
# mv libstdc++.* libg2c.* libgcc_s* old

When matlab is restarted, it will then use the system libraries instead of those supplied by Mathworks. And then all is fine and well with the world. Note that if this sort of thing happens with an x86-64 machine, then the directory in question would be ${MATLAB}/sys/os/glnxa64 instead of ${MATLAB}/sys/os/glnx86.

還有一個搜索到的:

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 海南省| 大姚县| 岱山县| 肃宁县| 大洼县| 利川市| 长海县| 仙游县| 广安市| 怀化市| 江源县| 吴川市| 高阳县| 南郑县| 土默特右旗| 武鸣县| 九龙坡区| 遵化市| 喀什市| 思南县| 辉南县| 东阿县| 炎陵县| 平度市| 南部县| 双柏县| 咸丰县| 舟山市| 灵武市| 都匀市| 获嘉县| 铜山县| 石棉县| 西丰县| 华安县| 城口县| 宜阳县| 佛坪县| 罗田县| 华安县| 石林|