1.下載:
請到電驢下載:《科學計算語言》(Mathworks Matlab)R2011a Win/UNIX[光盤鏡像]
下載工具: aMule
速度:慢,教育網開機3天才能下完。
2.安裝:
#mkdir /mnt/iso
#cd ~/Downloads/iso
#mount -o loop -t iso9660~/Downloads/iso/Matlab.R2011a.UNIX.ISO-TBE.iso/mnt/iso【紅色部分是你存放matlab iso 文件的路徑】
#cd /mnt/iso
#./install【到此彈出安裝界面,跟在windows下面一樣的】
【!】在/mnt/iso/crack文件夾裡面有E文的readme文檔,不懂參考裡面的說明來安裝。
3.啟動
順順利利安裝完畢,且完成破解,現在開始啟動。默認是安裝在/usr/local 文件夾裡面,且沒有創建圖標的,所以還要自己做些後續的工作。
在panel添加一個custom application launcher,圖標自選,command裡選擇路徑:/usr/local/MATLAB/R2011a/bin/matlab
4.遇到的問題
##1##
#error while loading shared libraries: libXp.so.6:
#cannot open shared object file: No such file or directory
///solution///
#yum install libXp.so.6
#####
##2##
#expr: error while loading shared libraries: libgmp.so.3: cannot enable executable stack as shared object requires: Permission denied
#/usr/local/MATLAB/R2011a/bin/util/oscheck.sh: line 138: [: -eq: unary operator expected
#/usr/local/MATLAB/R2011a/bin/glnx86/MATLAB: error while loading shared libraries: libut.so: cannot enable executable stack as shared object requires: Permission denied
///solution///
SElinux 搞的鬼,關掉SElinux: setenforce 0
或者或者,你想折騰的話,在不關閉SElinux情況下,采用以下的方法:
#chcon -texecmem_exec_t/usr/local/MATLAB/R2010b/bin/glnx86/MATLAB,改變consxt類型(不懂)
運行這樣就可以運行matlab了,但是又發現幾個warning:
a)cannot access `/glnx86/libpng.so': No such file or directory
我 ll 一下/glnx86/libpng.so 發現是一條斷鏈,要重新鏈接起來:
#ln -s -f libpng12.so.0.39.0 libpng.so【記得加-f 參數】
b)expr: error while loading shared libraries:libgmp.so.3: cannot enable executable stack as shared object requires: Permission denied
又是動態鏈接庫的問題!
還好Fedora 論壇高手雲集,找到了解決方法:
/usr/bin/execstack -c /usr/local/MATLAB/R2011b/bin/glnx86/libgmp.so.3
/usr/bin/execstack -c /usr/local/MATLAB/R2011b/bin/glnx86/libgmp.so.3.4.1
#####