[Ipopt] Ipopt installation in Debian

Sebastian Nowozin nowozin at gmail.com
Sat Dec 27 07:52:13 EST 2008


Hi Rishi,

Rishi Amrit wrote:

>    I am trying to make Ipopt work with MATLAB. I followed the
> installation steps and all seemed to work alright. When I call ipopt
> from MATLAB, I get:
> 
> ??? Invalid MEX-file
> '/opt/MATLAB/Ipopt-3.5.4/Ipopt/contrib/MatlabInterface/ipopt.mexa64':
> /opt/MATLAB/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version
> `GLIBCXX_3.4.9' not found (required by
> /opt/MATLAB/Ipopt-3.5.4/install/lib/libipopt.so.0).

> There is a libstdc++.so.6 at the lookup location, but it seems to be of
> a version Ipopt was not expecting. Could you please help me out with this ?

This is a very well known problem all mex files can encounter and
Mathworks has been unable to fix for ages.

My standard procedure is to remove (with backup) the files
  MATLABROOT/sys/os/glnxa64/libgcc_s.so.1
  MATLABROOT/sys/os/glnxa64/libstdc++.so.6  (symlink)
  MATLABROOT/sys/os/glnxa64/libstdc++.so.6.0.8

Then Matlab uses the normal system-supplied libstdc++ from the library
search pathes (LD_LIBRARY_PATH and /etc/ld.so.conf pathes).  This has
worked very well for me so far.

Sebastian



More information about the Ipopt mailing list