If you can't run symbolic computation on Matlab for Linux

Forrest Sheng Bao <http://forrest.bao.googlepages.com>

Maybe you encountered a problem saying "
version GLIBC_2.0 not defined in file libc.so.6". Like this log:

>> syms x
>> y=x^2+2*x+1
Unable to load mex file: /usr/local/mathlab/toolbox/symbolic/maplemex.mexglx.
/usr/local/mathlab/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/mathlab/toolbox/symbolic/maplemex.mexglx': .

Error in ==> maple at 104
[result,status] = maplemex(statement);

Error in ==> sym.maple at 85
[result,status] = maple(statement);

Error in ==> sym.mpower at 17
B = maple(A,'^',p);

The solution is on Mathworks website.

All what you need to do is to add an environmental variable

Then you can verify it.
>> getenv('LD_ASSUME_KERNEL')

ans =


Try to run your program again. It should work.

No comments: