Random Notes from My Research Life @ IISc

April 2, 2012

Mex Error in Matlab

Filed under: Linux,Matlab — Sooraj K. Ambat @ 01:34
Tags: , , ,

While using mex compiler in Matlab 2010+ versions, error occurs due to the conflict between tha shared libaries used by Matlab and the OS (mine is Ubuntu 11.10).

One of the solutions is to remove the Matlab shared libraries and use show the system shared libraries to Matlab.

This can be done by

cd sys/os/glnx86
mkdir old
mv libstdc++.* libg2c.* libgcc_s* old

Then, update the library path

export LD_LIBRARY_PATH=/usr/lib32:/usr/lib:$LD_LIBRARY_PATH
source: http://www.mathworks.com/matlabcentral/answers/8079-how-to-get-working-matlab-coder-in-linux

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: