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.
http://www.mathworks.com/support/solutions/data/1-1BDU5.html?solution=1-1BDU5

All what you need to do is to add an environmental variable
LD_ASSUME_KERNEL=2.4.1

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

ans =

2.4.1

Try to run your program again. It should work.

No comments: