不仅因为可能写的不好,也因为这个主题是关于并非GNU的软件的。
1、matlab的取得途径就不多说了,可以emule搜索,耐心下载!
2、挂载下来的Mathworks.Matlab.R2007a.UNIX.DVD.ISO-TBE.iso,里面有Crack文件夹。在适当位置建一个要安装的目录,比如/usr/local/matlab。把Crack目录下的/mnt/Crack/license_locked.dat复制为/usr/local/matlab/license.dat。
cp /mnt/Crack/license_locked.dat /usr/local/matlab/license.dat
3、对于Fedora 8 ,安装时会提示
CODE:
An error status was returned by the program 'xsetup', the X Window System version of 'install'. The following messages were written to standard error: /mnt/update/bin/glnx86/xsetup: error while loading shared libraries: libXp.so.6: cannot open shared object file: No such file or directory Attempt to fix the problem and try again. If X is not available or 'xsetup' cannot be made to work then try the terminal version of 'install' using the command: install* -t or INSTALL* -t Sorry! Setup aborted . . |
这个不要紧,回到Fedora添加/删除程序里,搜索libXp,把他装上即可。
4、进入iso挂载的目录,执行 sh install.一路next好了。
5、安装完毕,运行 /usr/local/matalb/bin/matlab,会出现提示:
CODE:
libmwlapack: load error: /usr/local/matlab/bin/glnx86/mkl.so: cannot restore segment prot after reloc: Permission denied terminate called after throwing an instance of 'std::runtime_error' what(): /usr/local/matlab/bin/glnx86/mkl.so: cannot restore segment prot after reloc: Permission denied |
可以运行:
chcon -t textrel_shlib_t /usr/local/matlab/bin/glnx86/*so
就可以了。再次运行/usr/local/matalb/bin/matlab。OK
6、如果出现:
MATLAB: xcb_xlib.c:50: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.
可以参考网上的方法用fc6或fc7的libX11和libX11-devel这两个rpm包替换Fedora 8中相应的包。