Linux下的Matlab
在教新版本Linux中使用Matlab的符号函数库及相关功能时,有时候可能会出错www.cechina.cn,错误的代码大致为:
Unable to load mex file: /usr/local/matlab/toolbox/symbolic/maplemex.mexglx.
/usr/local/matlab/bin/glnx86/libmaple.so: symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
??? Invalid MEX-file '/usr/local/matlab/toolbox/symbolic/maplemex.mexglx': .
Error in ==> maple at 104
[result控制工程网版权所有,status] = maplemex(statement);
 
(bash shell)
export LD_ASSUME_KERNEL=2.4.1
或:
export LD_ASSUME_KERNEL=2.2.5
(c shell)
setenv LD_ASSUME_KERNEL 2.4.1
或:
setenv LD_ASSUME_KERNEL 2.2.5